Guest User

Untitled

a guest
Sep 17th, 2013
263
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private String getStatiseData(Statise paramStatise)
  2. throws JSONException
  3. {
  4. ensureMac();
  5. if (TextUtils.isEmpty(this.mPhoneMac))
  6. {
  7. String str = MachineUtil.getLocalMacAddress(this.mContext);
  8. if (!TextUtils.isEmpty(str))
  9. this.mPhoneMac = str.replaceAll(":", "");
  10. }
  11. JSONObject localJSONObject = new JSONObject();
  12. localJSONObject.put("event", paramStatise.type);
  13. localJSONObject.put("imei", this.imei);
  14. localJSONObject.put("disnum", this.mDisNum);
  15. localJSONObject.put("model", Device);
  16. localJSONObject.put("time", paramStatise.time);
  17. localJSONObject.put("version", this.versionCode);
  18. localJSONObject.put("phonetype", this.phoneType);
  19. localJSONObject.put("net", paramStatise.network);
  20. localJSONObject.put("mac", this.mPhoneMac);
  21. localJSONObject.put("phonenum", this.phoneNum);
  22. localJSONObject.put("sdkversion", this.sdkVersion);
  23. localJSONObject.put("id", paramStatise.eventId);
  24. localJSONObject.put("pkg", paramStatise.pkg);
  25. localJSONObject.put("label", paramStatise.label);
  26. localJSONObject.put("action", paramStatise.action);
  27. return localJSONObject.toString();
  28. }
RAW Paste Data