Class EnclosedDataEvent<T>

java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EnclosedDataEvent<T>

public class EnclosedDataEvent<T> extends EventSubEvent
  • Constructor Details

    • EnclosedDataEvent

      public EnclosedDataEvent()
    • EnclosedDataEvent

      public EnclosedDataEvent(String id, T data)
      Creates a new EnclosedDataEvent instance.
      Parameters:
      id - Individual event ID, as assigned by EventSub. Use this for de-duplicating messages.
      data - The object that contains the event data.
  • Method Details

    • getId

      public String getId()
      Individual event ID, as assigned by EventSub. Use this for de-duplicating messages.
    • getData

      public T getData()
      The object that contains the event data.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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