Class AdSchedule

java.lang.Object
com.github.twitch4j.helix.domain.AdSchedule

public class AdSchedule extends Object
  • Constructor Details

    • AdSchedule

      public AdSchedule()
  • Method Details

    • getNextAdAt

      @Nullable public @Nullable Instant getNextAdAt()
      The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. Empty if the channel has no ad scheduled or is not live.
    • getLastAdAt

      @Nullable public @Nullable Instant getLastAdAt()
      The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format. Empty if the channel has not run an ad or is not live.
    • getLengthSeconds

      public Integer getLengthSeconds()
      The length in seconds of the scheduled upcoming ad break.
    • getPrerollFreeTimeSeconds

      public Integer getPrerollFreeTimeSeconds()
      The amount of pre-roll free time remaining for the channel in seconds. Returns 0 if they are currently not pre-roll free.
    • getSnoozeCount

      public Integer getSnoozeCount()
      The number of snoozes available for the broadcaster.
    • getSnoozeRefreshAt

      public Instant getSnoozeRefreshAt()
      The UTC timestamp when the broadcaster will gain an additional snooze.
    • 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