EnkaNetwork.py/enkanetwork/model/__init__.py

13 lines
355 B
Python
Raw Normal View History

2022-06-22 06:14:31 +00:00
from pydantic import BaseModel, Field
from typing import List
from .players import PlayerInfo
from .character import CharacterInfo
__all__ = ("EnkaNetworkResponse",)
2022-07-29 04:31:21 +00:00
2022-06-22 06:14:31 +00:00
class EnkaNetworkResponse(BaseModel):
2022-07-16 19:35:23 +00:00
player: PlayerInfo = Field(None, alias="playerInfo")
characters: List[CharacterInfo] = Field(None, alias="avatarInfoList")
2022-07-29 04:31:21 +00:00
ttl: int = 0