Package com.linecorp.bot.model.message
Class TextMessage
- java.lang.Object
-
- com.linecorp.bot.model.message.TextMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextMessage.Emoji
static class
TextMessage.TextMessageBuilder
-
Constructor Summary
Constructors Constructor Description TextMessage(@NonNull java.lang.String text, QuickReply quickReply)
TextMessage(java.lang.String text)
Constructor withoutquickReply
parameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextMessage.TextMessageBuilder
builder()
boolean
equals(java.lang.Object o)
java.util.List<TextMessage.Emoji>
getEmojis()
One or more LINE emoji.QuickReply
getQuickReply()
Sender
getSender()
@NonNull java.lang.String
getText()
int
hashCode()
TextMessage.TextMessageBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TextMessage
public TextMessage(java.lang.String text)
Constructor withoutquickReply
parameter.If you want use
QuickReply
, please usebuilder()
instead.
-
TextMessage
public TextMessage(@NonNull @NonNull java.lang.String text, QuickReply quickReply)
-
-
Method Detail
-
builder
public static TextMessage.TextMessageBuilder builder()
-
toBuilder
public TextMessage.TextMessageBuilder toBuilder()
-
getText
@NonNull public @NonNull java.lang.String getText()
-
getQuickReply
public QuickReply getQuickReply()
- Specified by:
getQuickReply
in interfaceMessage
-
getEmojis
public java.util.List<TextMessage.Emoji> getEmojis()
One or more LINE emoji.Max: 20 LINE emoji
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-