Class FollowsTopic
java.lang.Object
com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic<FollowList>
com.github.twitch4j.helix.webhooks.topics.FollowsTopic
public class FollowsTopic extends TwitchWebhookTopic<FollowList>
Notifies when a follows event occurs.
-
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 FollowsTopic(java.lang.String fromId, java.lang.String toId)Notifies when a follows event occurs. -
Method Summary
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
-
FollowsTopic
public FollowsTopic(java.lang.String fromId, java.lang.String toId)Notifies when a follows event occurs. At least one of fromId and toId is required.- Parameters:
fromId- Optional. Specifies the user who starts following someone.toId- Optional. Specifies the user who has a new follower.
-
-
Method Details
-
getFromId
public java.util.Optional<java.lang.String> getFromId()- Returns:
- The user who starts following someone.
-
getToId
public java.util.Optional<java.lang.String> getToId()- Returns:
- The user who has a new follower.
-