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.String PATH  
  • Constructor Summary

    Constructors
    Constructor Description
    FollowsTopic​(java.lang.String fromId, java.lang.String toId)
    Notifies when a follows event occurs.
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.lang.String> getFromId()  
    java.util.Optional<java.lang.String> getToId()  

    Methods inherited from class com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic

    canEqual, equals, fromUrl, getType, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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.