Class EventSocketSubscriptionSuccessEvent

java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketSubscriptionSuccessEvent

public final class EventSocketSubscriptionSuccessEvent extends Object
Called when an EventSocket successfully registers a subscription with the Helix API.
  • Constructor Details

    • EventSocketSubscriptionSuccessEvent

      public EventSocketSubscriptionSuccessEvent(EventSubSubscription subscription, TwitchEventSocket connection)
      Creates a new EventSocketSubscriptionSuccessEvent instance.
      Parameters:
      subscription - The eventsub subscription that was successfully created.
      connection - The EventSocket connection associated with the subscription.
  • Method Details

    • getSubscription

      public EventSubSubscription getSubscription()
      The eventsub subscription that was successfully created.
    • getConnection

      public TwitchEventSocket getConnection()
      The EventSocket connection associated with the subscription.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object