mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-22 10:18:44 +00:00
- Add UserNotFound and InvalidParams exception. - The API has changed its data format. - Updated the model to accommodate the new format. - Old format models have been moved to "models.v1". - Use the "fetch_user_v1" function to retrieve data in the old format.
19 lines
423 B
Python
19 lines
423 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from .character import Character
|
|
from .player import Player
|
|
|
|
|
|
class StarrailInfoParsed(BaseModel):
|
|
"""
|
|
Mihomo parsed data
|
|
|
|
Attributes:
|
|
- player (`Player`): The player's info.
|
|
- characters (list[`Character`]): The list of characters.
|
|
"""
|
|
|
|
player: Player
|
|
"""Player's basic info"""
|
|
characters: list[Character]
|
|
"""The list of characters"""
|