Package com.github.twitch4j.common.util
Class ChatReply
java.lang.Object
com.github.twitch4j.common.util.ChatReply
Meta-info regarding the parent message being replied to.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The display name of the sender of the direct parent message.The text of the direct parent message.@NonNull String
An ID that uniquely identifies the direct parent message that this message is replying to.An ID that uniquely identifies the top-level parent message of the reply thread that this message is replying to.The login name of the sender of the top-level parent message.An ID that identifies the sender of the direct parent message.The login name of the sender of the direct parent message.int
hashCode()
static ChatReply
parse
(Map<String, CharSequence> tags) Attempts to parse aChatReply
instance from chat tags.toString()
-
Field Details
-
REPLY_MSG_ID_TAG_NAME
- See Also:
-
-
Constructor Details
-
ChatReply
public ChatReply(@NonNull @NonNull String messageId, String messageBody, String userId, String userLogin, String displayName, String threadMessageId, String threadUserLogin) Creates a newChatReply
instance.- Parameters:
messageId
- An ID that uniquely identifies the direct parent message that this message is replying to.messageBody
- The text of the direct parent message.userId
- An ID that identifies the sender of the direct parent message.userLogin
- The login name of the sender of the direct parent message.displayName
- The display name of the sender of the direct parent message.threadMessageId
- An ID that uniquely identifies the top-level parent message of the reply thread that this message is replying to.threadUserLogin
- The login name of the sender of the top-level parent message.
-
-
Method Details
-
parse
Attempts to parse aChatReply
instance from chat tags.- Parameters:
tags
- the message tags associated with a reply.- Returns:
- the parsed
ChatReply
, or null if unsuccessful
-
getMessageId
An ID that uniquely identifies the direct parent message that this message is replying to. -
getMessageBody
The text of the direct parent message. -
getUserId
An ID that identifies the sender of the direct parent message. -
getUserLogin
The login name of the sender of the direct parent message. -
getDisplayName
The display name of the sender of the direct parent message. -
getThreadMessageId
An ID that uniquely identifies the top-level parent message of the reply thread that this message is replying to. -
getThreadUserLogin
The login name of the sender of the top-level parent message. -
equals
-
hashCode
public int hashCode() -
toString
-