Class PushMessage


  • public final class PushMessage
    extends java.lang.Object
    Send messages to users, groups, and rooms at any time.
    • Constructor Summary

      Constructors 
      Constructor Description
      PushMessage​(java.lang.String to, Message message)  
      PushMessage​(java.lang.String to, Message message, boolean notificationDisabled)  
      PushMessage​(java.lang.String to, java.util.List<Message> messages)  
      PushMessage​(java.lang.String to, java.util.List<Message> messages, boolean notificationDisabled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<Message> getMessages()
      List of Message objects.
      java.lang.String getTo()
      ID of the receiver.
      int hashCode()  
      boolean isNotificationDisabled()
      Whether sends a push notification to message receivers or not.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PushMessage

        public PushMessage​(java.lang.String to,
                           Message message)
      • PushMessage

        public PushMessage​(java.lang.String to,
                           java.util.List<Message> messages)
      • PushMessage

        public PushMessage​(java.lang.String to,
                           Message message,
                           boolean notificationDisabled)
      • PushMessage

        public PushMessage​(java.lang.String to,
                           java.util.List<Message> messages,
                           boolean notificationDisabled)
    • Method Detail

      • getTo

        public java.lang.String getTo()
        ID of the receiver.
      • getMessages

        public java.util.List<Message> getMessages()
        List of Message objects.

        Max: 5

      • isNotificationDisabled

        public boolean isNotificationDisabled()
        Whether sends a push notification to message receivers or not. If true, the user doesn't receive a push notification when the message is sent. And if false, the user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device).
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object