/** * enter the message content * * @param meesage */ public void setMessage(String meesage) { message.setMSG(meesage); }
/** * Set the extra tag of the message * * @param tag */ public void setTag(LiJSONObject tag) { message.setTag(tag); }
/** * add Tags * * @param key * @param value * @throws LiJSONException */ public void addTag(String key, String value) throws LiJSONException { message.addTag(key, value); }
/** * Set dispatchMinutes * * @param dispatchMinutes */ public void setDispatchMinutesFromNow(int dispatchMinutes) { message.setDispatchMinutes(dispatchMinutes); }
/** * Set the ringtone sound enter the file name of the ringtone sound file should be stored under * res\raw\filename * * @param sound */ public void setSound(String sound) { message.setSound(sound); }
/** * Set badge * * @param badge */ public void setBadge(int badge) { message.setBadge(badge); }
/** * Add Recipient * * @param userId */ public void addRecipient(String userId) { message.addRecipient(userId); }
/** * Add Recipients * * @param user */ public void addRecipients(List<User> users) { message.addRecipients(users); }
/** * Add Recipient * * @param user */ public void addRecipient(User user) { message.addRecipient(user.UserID); }
/** * Send push asynchronously result return via callbak * * @param liCallbackPush */ public void sendPush(LiCallbackPush liCallbackPush) { message.sendAsync(liCallbackPush); }