Class ValueWrapper<T>

java.lang.Object
com.github.twitch4j.helix.domain.ValueWrapper<T>
Type Parameters:
T - the type of value contained in the wrapper
Direct Known Subclasses:
AdScheduleWrapper, AutoModSettingsWrapper, CharityCampaignWrapper, ChatSettingsWrapper, SentChatMessageWrapper, ShieldModeStatusWrapper, SnoozedAdWrapper, SoundtrackCurrentTrackWrapper

public class ValueWrapper<T> extends Object
A generic container for helix responses that contain a single value.
  • Constructor Details

    • ValueWrapper

      public ValueWrapper()
  • Method Details

    • get

      public T get()
      Returns:
      the single value contained in the response, or null.
    • getData

      public List<T> getData()
      The data returned from the endpoint.
    • 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