diff --git a/xbox/webapi/api/provider/gameclips/models.py b/xbox/webapi/api/provider/gameclips/models.py index bbe3f787..6191d9eb 100644 --- a/xbox/webapi/api/provider/gameclips/models.py +++ b/xbox/webapi/api/provider/gameclips/models.py @@ -1,3 +1,4 @@ +from datetime import datetime from typing import List, Optional from xbox.webapi.common.models import CamelCaseModel @@ -6,24 +7,24 @@ class Thumbnail(CamelCaseModel): uri: str file_size: int - thumbnail_type: str + thumbnail_type: int class GameClipUri(CamelCaseModel): uri: str file_size: int - uri_type: str + uri_type: int expiration: str class GameClip(CamelCaseModel): game_clip_id: str - state: str - date_published: str - date_recorded: str - last_modified: str + state: int + date_published: datetime + date_recorded: datetime + last_modified: datetime user_caption: str - type: str + type: int duration_in_seconds: int scid: str title_id: int @@ -41,7 +42,7 @@ class GameClip(CamelCaseModel): clip_name: str title_name: str game_clip_locale: str - clip_content_attributes: str + clip_content_attributes: int device_type: str comment_count: int like_count: int diff --git a/xbox/webapi/api/provider/screenshots/models.py b/xbox/webapi/api/provider/screenshots/models.py index e4b73994..c36fe931 100644 --- a/xbox/webapi/api/provider/screenshots/models.py +++ b/xbox/webapi/api/provider/screenshots/models.py @@ -7,13 +7,13 @@ class Thumbnail(CamelCaseModel): uri: str file_size: int - thumbnail_type: str + thumbnail_type: int class ScreenshotUri(CamelCaseModel): uri: str file_size: int - uri_type: str + uri_type: int expiration: datetime @@ -21,12 +21,12 @@ class Screenshot(CamelCaseModel): screenshot_id: str resolution_height: int resolution_width: int - state: str + state: int date_published: datetime date_taken: datetime last_modified: datetime user_caption: str - type: str + type: int scid: str title_id: int rating: float @@ -43,7 +43,7 @@ class Screenshot(CamelCaseModel): screenshot_name: str title_name: str screenshot_locale: str - screenshot_content_attributes: str + screenshot_content_attributes: int device_type: str diff --git a/xbox/webapi/api/provider/titlehub/models.py b/xbox/webapi/api/provider/titlehub/models.py index 69cc0038..b48937b3 100644 --- a/xbox/webapi/api/provider/titlehub/models.py +++ b/xbox/webapi/api/provider/titlehub/models.py @@ -65,10 +65,10 @@ class Detail(CamelCaseModel): availabilities: List[Availability] capabilities: List[str] description: str - developer_name: str + developer_name: str | None = None genres: Optional[List[str]] = None publisher_name: str - min_age: Optional[int] = None + min_age: int | None = None release_date: Optional[datetime] = None short_description: Optional[str] = None vui_display_name: Optional[str] = None