Class PushMessage

java.lang.Object
com.linecorp.bot.model.PushMessage

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

    • PushMessage

      public PushMessage(String to, Message message)
    • PushMessage

      public PushMessage(String to, List<Message> messages)
    • PushMessage

      public PushMessage(String to, Message message, boolean notificationDisabled)
    • PushMessage

      public PushMessage(String to, List<Message> messages, boolean notificationDisabled)
    • PushMessage

      public PushMessage(String to, List<Message> messages, boolean notificationDisabled, List<String> customAggregationUnits)
  • Method Details

    • getTo

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

      public 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).
    • getCustomAggregationUnits

      public List<String> getCustomAggregationUnits()
      List of aggregation unit name. Case-sensitive. This functions can only be used by corporate users who have submitted the required applications.

      Max: 1

      Maximum aggregation unit name length: 30 characters

      Supported character types: Half-width alphanumeric characters and underscore

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object