Class SMS

  • All Implemented Interfaces:
    PushModel

    public class SMS
    extends java.lang.Object
    implements PushModel
    • Method Detail

      • content

        @Deprecated
        public static SMS content​(java.lang.String content,
                                  int delayTime)
        Deprecated.
        This will be removed in the future. Please use content(long tempId, int delayTime) this constructor. Create a SMS content with a delay time. JPush will send a SMS if the message doesn't received within the delay time. If the delay time is 0, the SMS will be sent immediately. Please note the delay time only works on Android. If you are pushing to iOS, the SMS will be sent immediately, whether or not the delay time is 0.
        Parameters:
        content - The SMS content.
        delayTime - The seconds you want to delay, should be greater than or equal to 0.
        Returns:
        SMS payload.
      • content

        public static SMS content​(long tempId,
                                  int delayTime)
      • toJSON

        public com.google.gson.JsonElement toJSON()
        Specified by:
        toJSON in interface PushModel