Class ChatSettings
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionChatSettings
(String broadcasterId, Boolean isEmoteOnlyMode, Boolean isFollowersOnlyMode, @Nullable Integer followerModeDuration, @Nullable String moderatorId, @Nullable Boolean hasNonModeratorChatDelay, @Nullable Integer nonModeratorChatDelayDuration, Boolean isSlowMode, @Nullable Integer slowModeWaitTime, Boolean isSubscribersOnlyMode, Boolean isUniqueChatMode) Creates a newChatSettings
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
The ID of the broadcaster specified in the request.@Nullable Integer
The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room Is null if follower_mode is false.@Nullable Duration
@Nullable String
The moderator’s ID.@Nullable Duration
@Nullable Integer
The amount of time, in seconds, that messages are delayed from appearing in chat.@Nullable Duration
@Nullable Integer
The amount of time, in seconds, that users need to wait between sending messages.int
hashCode()
@Nullable Boolean
A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room.A Boolean value that determines whether chat messages must contain only emotes.A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed.A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.toString()
withBroadcasterId
(String broadcasterId) The ID of the broadcaster specified in the request.withFollowerModeDuration
(@Nullable Integer followerModeDuration) The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room Is null if follower_mode is false.withHasNonModeratorChatDelay
(@Nullable Boolean hasNonModeratorChatDelay) A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room.withIsEmoteOnlyMode
(Boolean isEmoteOnlyMode) A Boolean value that determines whether chat messages must contain only emotes.withIsFollowersOnlyMode
(Boolean isFollowersOnlyMode) A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed.withIsSlowMode
(Boolean isSlowMode) A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.withIsSubscribersOnlyMode
(Boolean isSubscribersOnlyMode) A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.withIsUniqueChatMode
(Boolean isUniqueChatMode) A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.withModeratorId
(@Nullable String moderatorId) The moderator’s ID.withNonModeratorChatDelayDuration
(@Nullable Integer nonModeratorChatDelayDuration) The amount of time, in seconds, that messages are delayed from appearing in chat.withSlowModeWaitTime
(@Nullable Integer slowModeWaitTime) The amount of time, in seconds, that users need to wait between sending messages.
-
Constructor Details
-
ChatSettings
public ChatSettings() -
ChatSettings
public ChatSettings(String broadcasterId, Boolean isEmoteOnlyMode, Boolean isFollowersOnlyMode, @Nullable @Nullable Integer followerModeDuration, @Nullable @Nullable String moderatorId, @Nullable @Nullable Boolean hasNonModeratorChatDelay, @Nullable @Nullable Integer nonModeratorChatDelayDuration, Boolean isSlowMode, @Nullable @Nullable Integer slowModeWaitTime, Boolean isSubscribersOnlyMode, Boolean isUniqueChatMode) Creates a newChatSettings
instance.- Parameters:
broadcasterId
- The ID of the broadcaster specified in the request.isEmoteOnlyMode
- A Boolean value that determines whether chat messages must contain only emotes. Is true, if only messages that are 100% emotes are allowed; otherwise, false.isFollowersOnlyMode
- A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed. Is true, if the broadcaster restricts the chat room to followers only; otherwise, false.followerModeDuration
- The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room Is null if follower_mode is false.When setting this through the API, the possible values range from 0 (all followers) to 129600 (3 months). The default is 0.
moderatorId
- The moderator’s ID. The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.hasNonModeratorChatDelay
- A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message.Is true, if the broadcaster applies a delay; otherwise, false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
nonModeratorChatDelayDuration
- The amount of time, in seconds, that messages are delayed from appearing in chat.Is null if non_moderator_chat_delay is false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
When setting this through the API, the possible values are:
- 2 — 2 second delay (recommended)
- 4 — 4 second delay
- 6 — 6 second delay
isSlowMode
- A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.Is true, if the broadcaster applies a delay; otherwise, false.
slowModeWaitTime
- The amount of time, in seconds, that users need to wait between sending messages.Is null if slow_mode is false.
When setting this through the API, the possible values range from 3 (three-second delay) to 120 (two-minute delay). The default is 30 seconds.
isSubscribersOnlyMode
- A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.Is true, if the broadcaster restricts the chat room to subscribers only; otherwise, false.
isUniqueChatMode
- A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.Is true, if the broadcaster requires unique messages only; otherwise, false.
- See Also:
-
-
Method Details
-
getFollowersOnlyLength
- Returns:
- the
Duration
of the followers-only period, or null if not enabled.
-
getNonModChatDelayLength
- Returns:
- the
Duration
of the non-moderator chat delay, or null if not present.
-
getSlowModeLength
- Returns:
- the
Duration
of the slow mode, or null if not enabled.
-
builder
-
toBuilder
-
withBroadcasterId
The ID of the broadcaster specified in the request.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withIsEmoteOnlyMode
A Boolean value that determines whether chat messages must contain only emotes. Is true, if only messages that are 100% emotes are allowed; otherwise, false.- Returns:
this
.
-
withIsFollowersOnlyMode
A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed. Is true, if the broadcaster restricts the chat room to followers only; otherwise, false.- Returns:
this
.- See Also:
-
withFollowerModeDuration
The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room Is null if follower_mode is false.When setting this through the API, the possible values range from 0 (all followers) to 129600 (3 months). The default is 0.
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed). - See Also:
-
withModeratorId
The moderator’s ID. The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed). - See Also:
-
withHasNonModeratorChatDelay
public ChatSettings withHasNonModeratorChatDelay(@Nullable @Nullable Boolean hasNonModeratorChatDelay) A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message.Is true, if the broadcaster applies a delay; otherwise, false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
- Returns:
this
.- See Also:
-
withNonModeratorChatDelayDuration
public ChatSettings withNonModeratorChatDelayDuration(@Nullable @Nullable Integer nonModeratorChatDelayDuration) The amount of time, in seconds, that messages are delayed from appearing in chat.Is null if non_moderator_chat_delay is false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
When setting this through the API, the possible values are:
- 2 — 2 second delay (recommended)
- 4 — 4 second delay
- 6 — 6 second delay
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed). - See Also:
-
withIsSlowMode
A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.Is true, if the broadcaster applies a delay; otherwise, false.
- Returns:
this
.- See Also:
-
withSlowModeWaitTime
The amount of time, in seconds, that users need to wait between sending messages.Is null if slow_mode is false.
When setting this through the API, the possible values range from 3 (three-second delay) to 120 (two-minute delay). The default is 30 seconds.
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed). - See Also:
-
withIsSubscribersOnlyMode
A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.Is true, if the broadcaster restricts the chat room to subscribers only; otherwise, false.
- Returns:
this
.
-
withIsUniqueChatMode
A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.Is true, if the broadcaster requires unique messages only; otherwise, false.
- Returns:
this
.
-
getBroadcasterId
The ID of the broadcaster specified in the request. -
isEmoteOnlyMode
A Boolean value that determines whether chat messages must contain only emotes. Is true, if only messages that are 100% emotes are allowed; otherwise, false. -
isFollowersOnlyMode
A Boolean value that determines whether the broadcaster restricts the chat room to followers only, based on how long they’ve followed. Is true, if the broadcaster restricts the chat room to followers only; otherwise, false.- See Also:
-
getFollowerModeDuration
The length of time, in minutes, that the followers must have followed the broadcaster to participate in the chat room Is null if follower_mode is false.When setting this through the API, the possible values range from 0 (all followers) to 129600 (3 months). The default is 0.
- See Also:
-
getModeratorId
The moderator’s ID. The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.- See Also:
-
hasNonModeratorChatDelay
A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message.Is true, if the broadcaster applies a delay; otherwise, false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
-
getNonModeratorChatDelayDuration
The amount of time, in seconds, that messages are delayed from appearing in chat.Is null if non_moderator_chat_delay is false.
The response includes this field only if the request specifies a User access token that includes the moderator:read:chat_settings scope.
When setting this through the API, the possible values are:
- 2 — 2 second delay (recommended)
- 4 — 4 second delay
- 6 — 6 second delay
-
isSlowMode
A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages.Is true, if the broadcaster applies a delay; otherwise, false.
- See Also:
-
getSlowModeWaitTime
The amount of time, in seconds, that users need to wait between sending messages.Is null if slow_mode is false.
When setting this through the API, the possible values range from 3 (three-second delay) to 120 (two-minute delay). The default is 30 seconds.
- See Also:
-
isSubscribersOnlyMode
A Boolean value that determines whether only users that subscribe to the broadcaster’s channel can talk in the chat room.Is true, if the broadcaster restricts the chat room to subscribers only; otherwise, false.
-
isUniqueChatMode
A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room.Is true, if the broadcaster requires unique messages only; otherwise, false.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-