mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
3ec03d9b06
- add http client - update example - add aenter, aexit for auto close client
13 lines
355 B
Python
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
|