2021-08-28 19:21:19 +00:00
|
|
|
""" Typing Definitions """
|
2021-03-21 17:41:41 +00:00
|
|
|
|
2021-08-28 19:21:19 +00:00
|
|
|
from dataclasses import dataclass
|
|
|
|
from datetime import datetime, timedelta
|
2021-03-21 17:41:41 +00:00
|
|
|
|
|
|
|
|
2021-08-28 19:21:19 +00:00
|
|
|
@dataclass
|
|
|
|
class VoDEventThumbnail:
|
|
|
|
""" VoD Event Thumbnail """
|
|
|
|
|
|
|
|
url: str = None
|
|
|
|
exists: bool = None
|
|
|
|
path: str = None
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class VoDEvent:
|
|
|
|
""" VoD Event """
|
|
|
|
|
|
|
|
event_id: str = None
|
|
|
|
start: datetime = None
|
|
|
|
duration: timedelta = None
|
|
|
|
file: str = None
|
|
|
|
url: str = None
|
|
|
|
thumbnail: VoDEventThumbnail = None
|