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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe display name of the sender of the direct parent message.The text of the direct parent message.@NonNull StringAn 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.The display 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.inthashCode()static ChatReplyparse(Map<String, CharSequence> tags) Attempts to parse aChatReplyinstance 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, String threadUserName) Creates a newChatReplyinstance.- 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.threadUserName- The display name of the sender of the top-level parent message.
-
-
Method Details
-
parse
Attempts to parse aChatReplyinstance 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. -
getThreadUserName
The display name of the sender of the top-level parent message. -
equals
-
hashCode
public int hashCode() -
toString
-