public com.apptentive.android.sdk.model.CustomData toJson() { try { com.apptentive.android.sdk.model.CustomData ret = new com.apptentive.android.sdk.model.CustomData(); Set<String> keys = contents.keySet(); for (String key : keys) { ret.put(key, contents.get(key)); } return ret; } catch (JSONException e) { logException(e); } return null; }
@SuppressWarnings("unchecked") // We check it coming in. public CustomData getCustomData() { if (!isNull(KEY_CUSTOM_DATA)) { try { return new CustomData(getJSONObject(KEY_CUSTOM_DATA)); } catch (JSONException e) { logException(e); } } return null; }
@SuppressWarnings("unchecked") // We check it coming in. public CustomData getCustomData() { if (!isNull(KEY_CUSTOM_DATA)) { try { return new CustomData(getJSONObject(KEY_CUSTOM_DATA)); } catch (JSONException e) { logException(e); } } return null; }
public com.apptentive.android.sdk.model.CustomData toJson() { try { com.apptentive.android.sdk.model.CustomData ret = new com.apptentive.android.sdk.model.CustomData(); if (apptentive != null) { ret.put(INTEGRATION_APPTENTIVE_PUSH, apptentive.toJson()); } if (amazonAwsSns != null) { ret.put(INTEGRATION_AWS_SNS, amazonAwsSns.toJson()); } if (urbanAirship != null) { ret.put(INTEGRATION_URBAN_AIRSHIP, urbanAirship.toJson()); } if (parse != null) { ret.put(INTEGRATION_PARSE, parse.toJson()); } return ret; } catch (JSONException e) { logException(e); } return null; }
public com.apptentive.android.sdk.model.CustomData toJson() { try { com.apptentive.android.sdk.model.CustomData ret = new com.apptentive.android.sdk.model.CustomData(); Set<String> keys = keySet(); for (String key : keys) { ret.put(key, get(key)); } return ret; } catch (JSONException e) { ApptentiveLog.e(e, "Exception while creating custom data"); logException(e); } return null; } }