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

      public static ChatReply parse(Map<String,String> 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()
      The msgId of the original message being replied to.
    • getMessageBody

      public String getMessageBody()
      The text of the original message being replied to.
    • getUserId

      public String getUserId()
      The id of the user who originally sent the message being replied to.
    • getUserLogin

      public String getUserLogin()
      The login name of the user who originally sent the message being replied to.
    • getDisplayName

      public String getDisplayName()
      The display name of the user who originally sent the message being replied to.
    • 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