Class ChannelAdBreakBeginEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.ChannelAdBreakBeginEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Length in seconds of the mid-roll ad break requested.The ID of the user that requested the ad.The login of the user that requested the ad.The display name of the user that requested the ad.The UTC timestamp of when the ad break began, in RFC3339 format.int
hashCode()
Indicates if the ad was automatically scheduled via Ads Manager.toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
ChannelAdBreakBeginEvent
public ChannelAdBreakBeginEvent()
-
-
Method Details
-
getLengthSeconds
Length in seconds of the mid-roll ad break requested. -
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
Indicates if the ad was automatically scheduled via Ads Manager. -
getRequesterUserId
The ID of the user that requested the ad. For automatic ads, this will be the ID of the broadcaster. -
getRequesterUserLogin
The login of the user that requested the ad. -
getRequesterUserName
The display name of the user that requested the ad. -
toString
- Overrides:
toString
in classEventSubChannelEvent
-
equals
- Overrides:
equals
in classEventSubChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubChannelEvent
-