PhotosAPI/classes/models.py

27 lines
441 B
Python
Raw Normal View History

2022-12-20 18:07:48 +02:00
from typing import Union
from pydantic import BaseModel
class Photo(BaseModel):
id: str
album: str
hash: str
filename: str
2022-12-21 00:59:35 +02:00
class Video(BaseModel):
id: str
album: str
hash: str
filename: str
2022-12-20 18:07:48 +02:00
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