@Test public void testSetMessage() throws Exception { ParsePush push = new ParsePush(); push.setMessage("test"); ParsePush.State state = push.builder.build(); JSONObject data = state.data(); assertEquals("test", data.getString(ParsePush.KEY_DATA_MESSAGE)); }
public void setMessage(String message) { JSONObject data = new JSONObject(); try { data.put(KEY_DATA_MESSAGE, message); } catch (JSONException e) { PLog.e(TAG, "JSONException in setMessage", e); } setData(data); }
ParsePush { public void setMessage(String message) { JSONObject data = new JSONObject(); try { data.put(KEY_DATA_MESSAGE, message); } catch (JSONException e) { PLog.e(TAG, "JSONException in setMessage", e); } setData(data); } }
ParsePush { public void setMessage(String message) { JSONObject data = new JSONObject(); try { data.put(KEY_DATA_MESSAGE, message); } catch (JSONException e) { PLog.e(TAG, "JSONException in setMessage", e); } setData(data); } ParsePush();  ParsePush(ParsePush push); private  ParsePush(State.Builder builder); }
ParsePush { public void setMessage(String message) { JSONObject data = new JSONObject(); try { data.put(KEY_DATA_MESSAGE, message); } catch (JSONException e) { PLog.e(TAG, "JSONException in setMessage", e); } setData(data); } ParsePush();  ParsePush(ParsePush push); private  ParsePush(State.Builder builder); static Task<Void> subscribeInBackground(String channel); static void subscribeInBackground(String channel, SaveCallback callback); static Task<Void> unsubscribeInBackground(String channel); static void unsubscribeInBackground(String channel, SaveCallback callback); static Task<Void> sendMessageInBackground(String message,
                                                     ParseQuery<ParseInstallation> query); static void sendMessageInBackground(String message, ParseQuery<ParseInstallation> query,
                                               SendCallback callback); static Task<Void> sendDataInBackground(JSONObject data,
                                                  ParseQuery<ParseInstallation> query); static void sendDataInBackground(JSONObject data, ParseQuery<ParseInstallation> query,
                                            SendCallback callback); void setChannel(String channel); void setChannels(Collection<String> channels); void setQuery(ParseQuery<ParseInstallation> query); void setExpirationTime(long time); void setExpirationTimeInterval(long timeInterval); void clearExpiration(); void setPushTime(long time); void setData(JSONObject data); void setMessage(String message); Task<Void> sendInBackground(); void send(); void sendInBackground(SendCallback callback); }
ParsePush { public void setMessage(String message) { JSONObject data = new JSONObject(); try { data.put(KEY_DATA_MESSAGE, message); } catch (JSONException e) { PLog.e(TAG, "JSONException in setMessage", e); } setData(data); } ParsePush();  ParsePush(ParsePush push); private  ParsePush(State.Builder builder); static Task<Void> subscribeInBackground(String channel); static void subscribeInBackground(String channel, SaveCallback callback); static Task<Void> unsubscribeInBackground(String channel); static void unsubscribeInBackground(String channel, SaveCallback callback); static Task<Void> sendMessageInBackground(String message,
                                                     ParseQuery<ParseInstallation> query); static void sendMessageInBackground(String message, ParseQuery<ParseInstallation> query,
                                               SendCallback callback); static Task<Void> sendDataInBackground(JSONObject data,
                                                  ParseQuery<ParseInstallation> query); static void sendDataInBackground(JSONObject data, ParseQuery<ParseInstallation> query,
                                            SendCallback callback); void setChannel(String channel); void setChannels(Collection<String> channels); void setQuery(ParseQuery<ParseInstallation> query); void setExpirationTime(long time); void setExpirationTimeInterval(long timeInterval); void clearExpiration(); void setPushTime(long time); void setData(JSONObject data); void setMessage(String message); Task<Void> sendInBackground(); void send(); void sendInBackground(SendCallback callback);  }