home-automation-home-assistant/custom_components/reolink_dev/typings.py

26 lines
455 B
Python
Raw Normal View History

2021-08-28 19:21:19 +00:00
""" Typing Definitions """
2021-08-28 19:21:19 +00:00
from dataclasses import dataclass
from datetime import datetime, timedelta
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