EnkaNetwork.py/enkanetwork/model/base.py
2022-11-19 12:36:05 +07:00

12 lines
354 B
Python

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