Package com.linecorp.bot.model.event
Class MessageEvent<T extends MessageContent>
java.lang.Object
com.linecorp.bot.model.event.MessageEvent<T>
- All Implemented Interfaces:
Event
,ReplyEvent
public final class MessageEvent<T extends MessageContent>
extends Object
implements Event, ReplyEvent
Event object which contains the sent message.
The message field contains a message object which corresponds with the message type.
You can reply to message events.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends MessageContent>
MessageEvent.MessageEventBuilder<T>builder()
boolean
Get delivery context.Message body.getMode()
Channel state.Token for replying to this event.JSON object which contains the source of the event.Time of the event.Webhook Event ID.int
hashCode()
toString()
-
Method Details
-
builder
-
toBuilder
-
getReplyToken
Token for replying to this event.- Specified by:
getReplyToken
in interfaceReplyEvent
- See Also:
-
getSource
JSON object which contains the source of the event. -
getMessage
Message body. -
getTimestamp
Time of the event.- Specified by:
getTimestamp
in interfaceEvent
-
getMode
Channel state.- active
- The channel is active. You can send a reply message or push message from the bot server that received this webhook event.
- standby (under development)
- The channel is waiting. The bot server that received this webhook event shouldn't send any messages.
-
getWebhookEventId
Webhook Event ID. An ID that uniquely identifies a webhook event. This is a string in ULID format.- Specified by:
getWebhookEventId
in interfaceEvent
-
getDeliveryContext
Get delivery context.- Specified by:
getDeliveryContext
in interfaceEvent
-
equals
-
hashCode
public int hashCode() -
toString
-