EnkaNetwork.py/enkanetwork/model/__init__.py
Dee Dev 3ec03d9b06 Upgrade EnkaNetwork.py
- add http client
- update example

- add aenter, aexit for auto close client
2022-08-04 20:56:23 +07:00

13 lines
355 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