Class ModeratorChangeTopic
java.lang.Object
com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic<ModeratorEventList>
com.github.twitch4j.helix.webhooks.topics.ModeratorChangeTopic
public class ModeratorChangeTopic extends TwitchWebhookTopic<ModeratorEventList>
Notifies when a broadcaster adds or removes moderators.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic
TwitchWebhookTopic.UnknownTopic -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPATH -
Constructor Summary
Constructors Constructor Description ModeratorChangeTopic(@NonNull java.lang.String broadcasterId, java.lang.String userId)Notifies when a broadcaster adds or removes moderators. -
Method Summary
Modifier and Type Method Description java.lang.StringgetBroadcasterId()java.util.Optional<java.lang.String>getUserId()Methods inherited from class com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic
canEqual, equals, fromUrl, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
PATH
public static final java.lang.String PATH- See Also:
- Constant Field Values
-
-
Constructor Details
-
ModeratorChangeTopic
public ModeratorChangeTopic(@NonNull @NonNull java.lang.String broadcasterId, java.lang.String userId)Notifies when a broadcaster adds or removes moderators.- Parameters:
broadcasterId- Required. Specifies the user ID of the broadcaster.userId- Optional. Specifies the user ID of the moderator added or removed.
-
-
Method Details
-
getBroadcasterId
public java.lang.String getBroadcasterId()- Returns:
- The user ID of the broadcaster.
-
getUserId
public java.util.Optional<java.lang.String> getUserId()- Returns:
- The user ID of the moderator added or removed.
-