EnkaNetwork.py/enkanetwork/model/__init__.py
2022-07-17 02:35:23 +07:00

10 lines
318 B
Python

from pydantic import BaseModel, Field
from typing import List
from .players import PlayerInfo
from .character import CharacterInfo
class EnkaNetworkResponse(BaseModel):
player: PlayerInfo = Field(None, alias="playerInfo")
characters: List[CharacterInfo] = Field(None, alias="avatarInfoList")
ttl: int = 0