パッケージ com.linecorp.bot.model
クラス PushMessage
java.lang.Object
com.linecorp.bot.model.PushMessage
public final class PushMessage
extends java.lang.Object
Send messages to users, groups, and rooms at any time.
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 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)
PushMessage(java.lang.String to, java.util.List<Message> messages, boolean notificationDisabled, java.util.List<java.lang.String> customAggregationUnits)
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getCustomAggregationUnits()
List of aggregation unit name.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()
クラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
コンストラクタの詳細
-
PushMessage
-
PushMessage
-
PushMessage
-
PushMessage
public PushMessage(java.lang.String to, java.util.List<Message> messages, boolean notificationDisabled) -
PushMessage
public PushMessage(java.lang.String to, java.util.List<Message> messages, boolean notificationDisabled, java.util.List<java.lang.String> customAggregationUnits)
-
-
メソッドの詳細
-
getTo
public java.lang.String 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
public java.util.List<java.lang.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(java.lang.Object o)- オーバーライド:
equals
クラス内java.lang.Object
-
hashCode
public int hashCode()- オーバーライド:
hashCode
クラス内java.lang.Object
-
toString
public java.lang.String toString()- オーバーライド:
toString
クラス内java.lang.Object
-