Module twitchpy.dataclasses.ad_schedule

Classes

class AdSchedule (snooze_count: int,
snooze_refresh_at: datetime.datetime,
next_ad_at: datetime.datetime,
duration: int | None = None,
last_ad_at: datetime.datetime | None = None,
preroll_free_time: int | None = None)
Expand source code
@dataclass
class AdSchedule:
    """
    Represents an ad schecule

    Attributes:
        snooze_count (int): The number of snoozes available for the broadcaster
        snooze_refresh_at (datetime): The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format
        next_ad_at (datetime): The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format
        duration (int): The length in seconds of the scheduled upcoming ad break
        last_ad_at (datetime): The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format
        preroll_free_time (int): The amount of pre-roll free time remaining for the channel in seconds
    """

    snooze_count: int
    snooze_refresh_at: datetime
    next_ad_at: datetime
    duration: int | None = None
    last_ad_at: datetime | None = None
    preroll_free_time: int | None = None

Represents an ad schecule

Attributes

snooze_count : int
The number of snoozes available for the broadcaster
snooze_refresh_at : datetime
The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format
next_ad_at : datetime
The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format
duration : int
The length in seconds of the scheduled upcoming ad break
last_ad_at : datetime
The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format
preroll_free_time : int
The amount of pre-roll free time remaining for the channel in seconds

Class variables

var duration : int | None

The type of the None singleton.

var last_ad_at : datetime.datetime | None

The type of the None singleton.

var next_ad_at : datetime.datetime

The type of the None singleton.

var preroll_free_time : int | None

The type of the None singleton.

var snooze_count : int

The type of the None singleton.

var snooze_refresh_at : datetime.datetime

The type of the None singleton.