public static void planChangeAccepted(@AnalyticsCnsts.PlanChange String planChangeType,double amount){
  Date date=new Date();
  Timestamp curTime=new Timestamp(date.getTime());
  String json=gson.toJson(new AnalyticsPlanChange(planChangeType,amount,curTime),AnalyticsPlanChange.class);
  JSONObject jsonObject=null;
  try {
    jsonObject=new JSONObject(json);
    jsonObject.put("_activity","planChanged");
    Log.i("TEST","JSON AFTER ACTIVITY " + jsonObject.toString());
    WLAnalytics.log("Plan change accepted by a user",jsonObject);
  }
 catch (  JSONException e) {
    e.printStackTrace();
  }
}

public static void planChangeAccepted ( @ AnalyticsCnsts . PlanChange String planChangeType , double amount ) { Date date = new Date ( ) ; Timestamp curTime = new Timestamp ( date . getTime ( ) ) ; String json = gson . toJson ( new AnalyticsPlanChange ( planChangeType , amount , curTime ) , AnalyticsPlanChange . class ) ; JSONObject jsonObject = null ; try { jsonObject = new JSONObject ( json ) ; jsonObject . put ( "_activity" , "planChanged" ) ; Log . i ( "TEST" , "JSON AFTER ACTIVITY " + jsonObject . toString ( ) ) ; WLAnalytics . log ( "Plan change accepted by a user" , jsonObject ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } }
planchangeaccepted ( ) sends an operational analytics log anytime a user accepts a plan change .
