Added models where possible

This commit is contained in:
Profitroll
2022-12-20 17:07:48 +01:00
parent 2e76962ca0
commit 653688b376
3 changed files with 32 additions and 10 deletions

21
classes/models.py Normal file
View File

@@ -0,0 +1,21 @@
from typing import Union
from pydantic import BaseModel
class Photo(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