EnkaNetwork.py/enkanetwork/model/__init__.py

10 lines
314 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
class EnkaNetworkResponse(BaseModel):
player: PlayerInfo = Field({}, alias="playerInfo")
characters: List[CharacterInfo] = Field([], alias="avatarInfoList")
ttl: int = 0