Class ChatReply

java.lang.Object
com.github.twitch4j.common.util.ChatReply

public final class ChatReply extends Object
Meta-info regarding the parent message being replied to.
  • Field Details

  • Constructor Details

  • Method Details

    • parse

      @Internal public static ChatReply parse(Map<String,CharSequence> tags)
      Attempts to parse a ChatReply instance from chat tags.
      Parameters:
      tags - the message tags associated with a reply.
      Returns:
      the parsed ChatReply, or null if unsuccessful
    • getMessageId

      @NonNull public @NonNull String getMessageId()
      An ID that uniquely identifies the direct parent message that this message is replying to.
    • getMessageBody

      public String getMessageBody()
      The text of the direct parent message.
    • getUserId

      public String getUserId()
      An ID that identifies the sender of the direct parent message.
    • getUserLogin

      public String getUserLogin()
      The login name of the sender of the direct parent message.
    • getDisplayName

      public String getDisplayName()
      The display name of the sender of the direct parent message.
    • getThreadMessageId

      public String getThreadMessageId()
      An ID that uniquely identifies the top-level parent message of the reply thread that this message is replying to.
    • getThreadUserLogin

      public String getThreadUserLogin()
      The login name of the sender of the top-level parent message.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object