Updated Video model
This commit is contained in:
parent
7580478ac3
commit
b285fc0668
@ -1,6 +1,7 @@
|
|||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
class Photo(BaseModel):
|
class Photo(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
album: str
|
album: str
|
||||||
@ -17,17 +18,24 @@ class PhotoSearch(BaseModel):
|
|||||||
filename: str
|
filename: str
|
||||||
caption: Union[str, None]
|
caption: Union[str, None]
|
||||||
|
|
||||||
|
|
||||||
class Video(BaseModel):
|
class Video(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
album: str
|
album: str
|
||||||
hash: str
|
hash: str
|
||||||
filename: str
|
filename: str
|
||||||
|
|
||||||
|
class VideoPublic(BaseModel):
|
||||||
|
id: str
|
||||||
|
caption: str
|
||||||
|
filename: str
|
||||||
|
|
||||||
class VideoSearch(BaseModel):
|
class VideoSearch(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
filename: str
|
filename: str
|
||||||
caption: Union[str, None]
|
caption: Union[str, None]
|
||||||
|
|
||||||
|
|
||||||
class Album(BaseModel):
|
class Album(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
name: str
|
name: str
|
||||||
@ -43,6 +51,7 @@ class AlbumModified(BaseModel):
|
|||||||
title: str
|
title: str
|
||||||
cover: Union[str, None]
|
cover: Union[str, None]
|
||||||
|
|
||||||
|
|
||||||
class SearchResultsAlbum(BaseModel):
|
class SearchResultsAlbum(BaseModel):
|
||||||
results: List[Album]
|
results: List[Album]
|
||||||
next_page: Union[str, None]
|
next_page: Union[str, None]
|
||||||
@ -55,5 +64,6 @@ class SearchResultsVideo(BaseModel):
|
|||||||
results: List[VideoSearch]
|
results: List[VideoSearch]
|
||||||
next_page: Union[str, None]
|
next_page: Union[str, None]
|
||||||
|
|
||||||
|
|
||||||
class EmailConfirmed(BaseModel):
|
class EmailConfirmed(BaseModel):
|
||||||
detail: str
|
detail: str
|
Loading…
Reference in New Issue
Block a user