Package com.github.twitch4j.helix.domain
Class AdSchedule
java.lang.Object
com.github.twitch4j.helix.domain.AdSchedule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable Instant
The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format.The length in seconds of the scheduled upcoming ad break.@Nullable Instant
The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format.The amount of pre-roll free time remaining for the channel in seconds.The number of snoozes available for the broadcaster.The UTC timestamp when the broadcaster will gain an additional snooze.int
hashCode()
toString()
-
Constructor Details
-
AdSchedule
public AdSchedule()
-
-
Method Details
-
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
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
The length in seconds of the scheduled upcoming ad break. -
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
The number of snoozes available for the broadcaster. -
getSnoozeRefreshAt
The UTC timestamp when the broadcaster will gain an additional snooze. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-