27 lines
441 B
Python
27 lines
441 B
Python
from typing import Union
|
|
from pydantic import BaseModel
|
|
|
|
class Photo(BaseModel):
|
|
id: str
|
|
album: str
|
|
hash: str
|
|
filename: str
|
|
|
|
class Video(BaseModel):
|
|
id: str
|
|
album: str
|
|
hash: str
|
|
filename: str
|
|
|
|
class Album(BaseModel):
|
|
id: str
|
|
name: str
|
|
title: str
|
|
|
|
class AlbumModified(BaseModel):
|
|
name: str
|
|
title: str
|
|
|
|
class SearchResults(BaseModel):
|
|
results: list
|
|
next_page: Union[str, None] = None |