Class ChannelAdBreakBeginEvent


public class ChannelAdBreakBeginEvent extends EventSubChannelEvent
  • Constructor Details

    • ChannelAdBreakBeginEvent

      public ChannelAdBreakBeginEvent()
  • Method Details

    • getLengthSeconds

      public Integer getLengthSeconds()
      Length in seconds of the mid-roll ad break requested.
    • getStartedAt

      public Instant getStartedAt()
      The UTC timestamp of when the ad break began, in RFC3339 format.

      Note that there is potential delay between this event, when the streamer requested the ad break, and when the viewers will see ads.

    • isAutomatic

      public Boolean isAutomatic()
      Indicates if the ad was automatically scheduled via Ads Manager.
    • getRequesterUserId

      public String getRequesterUserId()
      The ID of the user that requested the ad. For automatic ads, this will be the ID of the broadcaster.
    • getRequesterUserLogin

      public String getRequesterUserLogin()
      The login of the user that requested the ad.
    • getRequesterUserName

      public String getRequesterUserName()
      The display name of the user that requested the ad.
    • toString

      public String toString()
      Overrides:
      toString in class EventSubChannelEvent
    • equals

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

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class EventSubChannelEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EventSubChannelEvent