Class ChatMessage

java.lang.Object
com.github.twitch4j.helix.domain.ChatMessage

public class ChatMessage extends Object
  • Constructor Details

    • ChatMessage

      public ChatMessage()
    • ChatMessage

      public ChatMessage(@NotNull @NotNull String broadcasterId, @NotNull @NotNull String senderId, @NotNull @NotNull String message, @Nullable @Nullable String replyParentMessageId)
  • Method Details

    • builder

      public static ChatMessage.ChatMessageBuilder builder()
    • toBuilder

      public ChatMessage.ChatMessageBuilder toBuilder()
    • withBroadcasterId

      public ChatMessage withBroadcasterId(@NotNull @NotNull String broadcasterId)
      The ID of the broadcaster whose chat room the message will be sent to.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSenderId

      public ChatMessage withSenderId(@NotNull @NotNull String senderId)
      The ID of the user sending the message.

      This ID must match the user ID in the user access token (if not using an app access token).

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMessage

      public ChatMessage withMessage(@NotNull @NotNull String message)
      The message to send.

      The message is limited to a maximum of 500 characters.

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReplyParentMessageId

      public ChatMessage withReplyParentMessageId(@Nullable @Nullable String replyParentMessageId)
      The ID of the chat message being replied to, if any.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getBroadcasterId

      @NotNull public @NotNull String getBroadcasterId()
      The ID of the broadcaster whose chat room the message will be sent to.
    • getSenderId

      @NotNull public @NotNull String getSenderId()
      The ID of the user sending the message.

      This ID must match the user ID in the user access token (if not using an app access token).

    • getMessage

      @NotNull public @NotNull String getMessage()
      The message to send.

      The message is limited to a maximum of 500 characters.

    • getReplyParentMessageId

      @Nullable public @Nullable String getReplyParentMessageId()
      The ID of the chat message being replied to, if any.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object