Module valolyticspy.dtos.henrikdev.account
Expand source code
import sys
sys.path.append("")
from pydantic import BaseModel
from valolyticspy.dtos.valorant_api.player_card import PlayerCard
class Account(BaseModel):
"""
Represents a player account.
Attributes:
puuid (str): The unique identifier for the account.
region (str): The region where the account is located.
account_level (int): The level of the account.
name (str): The name of the account.
tag (str): The tag associated with the account.
card (PlayerCard): The player card associated with the account.
last_update (str): The timestamp of the last update.
last_update_raw (int): The raw value of the last update timestamp.
"""
puuid: str
region: str
account_level: int
name: str
tag: str
card: PlayerCard
last_update: str
last_update_raw: int
Classes
class Account (**data: Any)-
Represents a player account.
Attributes
puuid:str- The unique identifier for the account.
region:str- The region where the account is located.
account_level:int- The level of the account.
name:str- The name of the account.
tag:str- The tag associated with the account.
card:PlayerCard- The player card associated with the account.
last_update:str- The timestamp of the last update.
last_update_raw:int- The raw value of the last update timestamp.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Account(BaseModel): """ Represents a player account. Attributes: puuid (str): The unique identifier for the account. region (str): The region where the account is located. account_level (int): The level of the account. name (str): The name of the account. tag (str): The tag associated with the account. card (PlayerCard): The player card associated with the account. last_update (str): The timestamp of the last update. last_update_raw (int): The raw value of the last update timestamp. """ puuid: str region: str account_level: int name: str tag: str card: PlayerCard last_update: str last_update_raw: intAncestors
- pydantic.main.BaseModel
Class variables
var account_level : intvar card : PlayerCardvar last_update : strvar last_update_raw : intvar model_computed_fieldsvar model_configvar model_fieldsvar name : strvar puuid : strvar region : strvar tag : str