1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00
Rare/rare/models/apiresults.py
loathingKernel 3a28f2f0a2 Implement image manager
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-19 17:12:59 +03:00

23 lines
629 B
Python

from dataclasses import dataclass
from typing import Optional, List, Dict
@dataclass
class ApiResults:
game_list: Optional[List] = None
dlcs: Optional[Dict] = None
bit32_games: Optional[List] = None
mac_games: Optional[List] = None
no_asset_games: Optional[List] = None
saves: Optional[List] = None
def __bool__(self):
return (
self.game_list is not None
and self.dlcs is not None
and self.bit32_games is not None
and self.mac_games is not None
and self.no_asset_games is not None
and self.saves is not None
)