Package com.github.twitch4j.helix.domain
Class ChatMessage
java.lang.Object
com.github.twitch4j.helix.domain.ChatMessage
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionChatMessage
(@NotNull String broadcasterId, @NotNull String senderId, @NotNull String message, @Nullable String replyParentMessageId) Creates a newChatMessage
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
@NotNull String
The ID of the broadcaster whose chat room the message will be sent to.@NotNull String
The message to send.@Nullable String
The ID of the chat message being replied to, if any.@NotNull String
The ID of the user sending the message.int
hashCode()
toString()
withBroadcasterId
(@NotNull String broadcasterId) The ID of the broadcaster whose chat room the message will be sent to.withMessage
(@NotNull String message) The message to send.withReplyParentMessageId
(@Nullable String replyParentMessageId) The ID of the chat message being replied to, if any.withSenderId
(@NotNull String senderId) The ID of the user sending the message.
-
Constructor Details
-
ChatMessage
public ChatMessage() -
ChatMessage
public ChatMessage(@NotNull @NotNull String broadcasterId, @NotNull @NotNull String senderId, @NotNull @NotNull String message, @Nullable @Nullable String replyParentMessageId) Creates a newChatMessage
instance.- Parameters:
broadcasterId
- The ID of the broadcaster whose chat room the message will be sent to.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).
message
- The message to send.The message is limited to a maximum of 500 characters.
replyParentMessageId
- The ID of the chat message being replied to, if any.
-
-
Method Details
-
builder
-
toBuilder
-
withBroadcasterId
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
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
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
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
The ID of the broadcaster whose chat room the message will be sent to. -
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
The message to send.The message is limited to a maximum of 500 characters.
-
getReplyParentMessageId
The ID of the chat message being replied to, if any. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-