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.

self is explicitly positional-only to allow self as 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: int

Ancestors

  • pydantic.main.BaseModel

Class variables

var account_level : int
var cardPlayerCard
var last_update : str
var last_update_raw : int
var model_computed_fields
var model_config
var model_fields
var name : str
var puuid : str
var region : str
var tag : str