Package com.linecorp.bot.model.event
Class AccountLinkEvent
- java.lang.Object
-
- com.linecorp.bot.model.event.AccountLinkEvent
-
- All Implemented Interfaces:
Event,ReplyEvent
public final class AccountLinkEvent extends java.lang.Object implements Event, ReplyEvent
Event object for when a user has linked his/her LINE account with a provider's service account. You can reply to account link events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountLinkEvent.AccountLinkEventBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountLinkEvent.AccountLinkEventBuilderbuilder()booleanequals(java.lang.Object o)LinkContentgetLink()Content of the account link event.EventModegetMode()Channel state.java.lang.StringgetReplyToken()Token for replying to this event.SourcegetSource()JSON object which contains the source of the event.java.time.InstantgetTimestamp()Time of the event.inthashCode()AccountLinkEvent.AccountLinkEventBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static AccountLinkEvent.AccountLinkEventBuilder builder()
-
toBuilder
public AccountLinkEvent.AccountLinkEventBuilder toBuilder()
-
getReplyToken
public java.lang.String getReplyToken()
Token for replying to this event.- Specified by:
getReplyTokenin interfaceReplyEvent- See Also:
ReplyMessage, Sample request Body
-
getSource
public Source getSource()
JSON object which contains the source of the event.
-
getTimestamp
public java.time.Instant getTimestamp()
Time of the event.- Specified by:
getTimestampin interfaceEvent
-
getLink
public LinkContent getLink()
Content of the account link event.
-
getMode
public EventMode 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-