Class EventSubNotification

java.lang.Object
com.github.twitch4j.eventsub.EventSubNotification

public class EventSubNotification extends Object
  • Constructor Details

    • EventSubNotification

      public EventSubNotification(EventSubSubscription subscription, EventSubEvent event, @Nullable @Nullable String challenge)
      Creates a new EventSubNotification instance.
      Parameters:
      subscription - Metadata about the subscription.
      event - The event information. The fields inside this object differ by subscription type.
      challenge - The value of challenge from the callback verification request must be returned to complete the verification process.

      Note: websocket subscriptions do not involve a challenge handshake.

  • Method Details

    • getSubscription

      public EventSubSubscription getSubscription()
      Metadata about the subscription.
    • getEvent

      public EventSubEvent getEvent()
      The event information. The fields inside this object differ by subscription type.
    • getChallenge

      @Nullable public @Nullable String getChallenge()
      The value of challenge from the callback verification request must be returned to complete the verification process.

      Note: websocket subscriptions do not involve a challenge handshake.

    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object