Klasse TwitchWebhookTopic<T>

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

@Deprecated public abstract class TwitchWebhookTopic<T> extends Object
Veraltet.
  • Konstruktordetails

    • TwitchWebhookTopic

      public TwitchWebhookTopic(String path, Class<T> type, SortedMap<String,Object> queryParameters)
      Veraltet.
      Create a new topic starting with "https://api.twitch.tv/helix"
      Parameter:
      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)
      Veraltet.
      Override the base URL in case Twitch ever changes it or creates a new endpoint with a different URL.
      Parameter:
      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)
      Veraltet.
      Create a new topic from an existing URL
      Parameter:
      url - The URL representing this topic.
      type - The data class that notifications for this topic deserialize to.
  • Methodendetails

    • toString

      public String toString()
      Veraltet.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      The URL associated with this topic
    • fromUrl

      public static TwitchWebhookTopic<?> fromUrl(String url) throws URISyntaxException
      Veraltet.
      Löst aus:
      URISyntaxException
    • equals

      public boolean equals(Object o)
      Veraltet.
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
      Veraltet.
    • hashCode

      public int hashCode()
      Veraltet.
      Setzt außer Kraft:
      hashCode in Klasse Object
    • getType

      public Class<T> getType()
      Veraltet.
      The data class that notifications for this topic deserialize to