Klasse ChatSettings
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungChatSettings(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) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected booleanbooleanThe ID of the broadcaster specified in the request.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.The moderator’s ID.The amount of time, in seconds, that messages are delayed from appearing in chat.The amount of time, in seconds, that users need to wait between sending messages.inthashCode()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.
-
Konstruktordetails
-
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)
-
-
Methodendetails
-
getFollowersOnlyLength
- Gibt zurück:
- the
Durationof the followers-only period, or null if not enabled.
-
getNonModChatDelayLength
- Gibt zurück:
- the
Durationof the non-moderator chat delay, or null if not present.
-
getSlowModeLength
- Gibt zurück:
- the
Durationof the slow mode, or null if not enabled.
-
builder
-
toBuilder
-
withBroadcasterId
The ID of the broadcaster specified in the request.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif 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.- Gibt zurück:
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.- Gibt zurück:
this.- Siehe auch:
-
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.
- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed). - Siehe auch:
-
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.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed). - Siehe auch:
-
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.
- Gibt zurück:
this.- Siehe auch:
-
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
- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed). - Siehe auch:
-
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.
- Gibt zurück:
this.- Siehe auch:
-
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.
- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed). - Siehe auch:
-
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.
- Gibt zurück:
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.
- Gibt zurück:
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.- Siehe auch:
-
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.
- Siehe auch:
-
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.- Siehe auch:
-
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.
- Siehe auch:
-
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
- Siehe auch:
-
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.
- Siehe auch:
-
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.
- Siehe auch:
-
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
-