Class TwitchWebhookTopic<T>

java.lang.Object
com.github.twitch4j.helix.webhooks.topics.TwitchWebhookTopic<T>
Direct Known Subclasses:
ChannelBanTopic, ChannelSubscriptionTopic, ExtensionTransactionsTopic, FollowsTopic, HypeTrainTopic, ModeratorChangeTopic, StreamsTopic, TwitchWebhookTopic.UnknownTopic, UsersTopic

@Deprecated public abstract class TwitchWebhookTopic<T> extends Object
Deprecated.
  • Constructor Details

    • TwitchWebhookTopic

      public TwitchWebhookTopic(String path, Class<T> type, SortedMap<String,Object> queryParameters)
      Deprecated.
      Create a new topic starting with "https://api.twitch.tv/helix"
      Parameters:
      path - The path to the specific Helix API endpoint..
      type - The data class that notifications for this topic deserialize to.
      queryParameters - A list of the query parameters for this topic URL. Will be sorted alphabetically, so performance will be higher if it is already sorted.
    • TwitchWebhookTopic

      public TwitchWebhookTopic(String baseUrl, String path, Class<T> type, SortedMap<String,Object> queryParameters)
      Deprecated.
      Override the base URL in case Twitch ever changes it or creates a new endpoint with a different URL.
      Parameters:
      baseUrl - The base URL of the endpoint.
      path - The path to the specific API endpoint.
      type - The data class that notifications for this topic deserialize to.
      queryParameters - A list of the query parameters for this topic URL. Will be sorted alphabetically, so performance will be higher if it is already sorted.
    • TwitchWebhookTopic

      public TwitchWebhookTopic(String url, Class<T> type)
      Deprecated.
      Create a new topic from an existing URL
      Parameters:
      url - The URL representing this topic.
      type - The data class that notifications for this topic deserialize to.
  • Method Details