Package com.linecorp.bot.model
Class PushMessage
java.lang.Object
com.linecorp.bot.model.PushMessage
Send messages to users, groups, and rooms at any time.
-
Constructor Summary
ConstructorDescriptionPushMessage
(String to, Message message) PushMessage
(String to, Message message, boolean notificationDisabled) PushMessage
(String to, List<Message> messages) PushMessage
(String to, List<Message> messages, boolean notificationDisabled) PushMessage
(String to, List<Message> messages, boolean notificationDisabled, List<String> customAggregationUnits) -
Method Summary
-
Constructor Details
-
PushMessage
-
PushMessage
-
PushMessage
-
PushMessage
-
PushMessage
-
-
Method Details
-
getTo
ID of the receiver. -
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
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
-
hashCode
public int hashCode() -
toString
-