Class EventSubSubscription

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

public class EventSubSubscription
extends java.lang.Object
  • Constructor Details

    • EventSubSubscription

      public EventSubSubscription​(java.lang.String id, EventSubSubscriptionStatus status, java.lang.String type, java.lang.String version, java.util.Map<java.lang.String,​java.lang.Object> condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost)
    • EventSubSubscription

      public EventSubSubscription()
    • EventSubSubscription

      public EventSubSubscription​(java.lang.String id, EventSubSubscriptionStatus status, SubscriptionType<?,​?,​?> type, EventSubCondition condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost, java.lang.String rawType, java.lang.String rawVersion)
  • Method Details

    • builder

    • getId

      public java.lang.String getId()
      ID of the subscription.
    • getStatus

      public EventSubSubscriptionStatus getStatus()
      Status of the subscription.
    • getCondition

      public EventSubCondition getCondition()
      Object specifying custom parameters for the subscription.
    • getCreatedAt

      public java.time.Instant getCreatedAt()
      Timestamp indicating when the subscription was created.
    • getTransport

      public EventSubTransport getTransport()
      Object indicating the notification delivery specific information.
    • getCost

      public java.lang.Integer getCost()
      How much the subscription counts against your limit. Subscriptions cost 0 if the user has authorized your application; otherwise they cost 1.
      See Also:
      Limit Docs
    • getRawType

      public java.lang.String getRawType()
      The category of the subscription.
    • getRawVersion

      public java.lang.String getRawVersion()
      The version of the subscription.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getType

      public SubscriptionType<?,​?,​?> getType()
      The category and version of the subscription.
    • withTransport

      public EventSubSubscription withTransport​(EventSubTransport transport)
      Object indicating the notification delivery specific information.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).