1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
from typing import Any, Dict, List, Optional
from xbox.webapi.common.models import PascalCaseModel
class Image(PascalCaseModel):
purpose: str
resize_uri: str
fore_color: str
class ListChannel(PascalCaseModel):
id: str
channel_id: str
call_sign: str
channel_number: str
start_date: str
end_date: str
images: List[Image]
is_HD: Optional[bool] = None
class CqsChannelListResponse(PascalCaseModel):
channels: List[ListChannel]
class Genre(PascalCaseModel):
name: str
class ParentSeries(PascalCaseModel):
id: str
name: str
class Program(PascalCaseModel):
id: str
media_item_type: str
start_date: str
end_date: str
name: str
is_repeat: bool
parental_control: Optional[Dict[str, Any]] = None
genres: List[Genre]
category_id: int
description: Optional[str] = None
parent_series: Optional[ParentSeries] = None
images: Optional[List[Image]] = None
class ScheduleChannel(PascalCaseModel):
id: str
name: str
images: List[Image]
programs: List[Program]
class CqsScheduleResponse(PascalCaseModel):
channels: List[ScheduleChannel]
|