Module valolyticspy.dtos.valorant_api.buddy

Expand source code
from pydantic import BaseModel
from typing import List, Optional

class Level(BaseModel):
    """
    Represents a level of a buddy in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the level.
        charmLevel (int): The level of charm associated with the buddy.
        hideIfNotOwned (bool): Indicates whether the level should be hidden if not owned.
        displayName (str): The display name of the level.
        displayIcon (str): The icon associated with the level.
        assetPath (str): The path to the asset file of the level.
    """
    uuid: str
    charmLevel: int
    hideIfNotOwned: bool
    displayName: str
    displayIcon: str
    assetPath: str

class Buddy(BaseModel):
    """
    Represents a buddy in Valorant.

    Attributes:
        uuid (str): The unique identifier of the buddy.
        displayName (str): The display name of the buddy.
        isHiddenIfNotOwned (bool): Indicates whether the buddy is hidden if not owned.
        themeUuid (Optional[str], optional): The unique identifier of the theme associated with the buddy. Defaults to None.
        displayIcon (str): The display icon of the buddy.
        assetPath (str): The asset path of the buddy.
        levels (List[Level]): A list of levels associated with the buddy.
    """
    uuid: str
    displayName: str
    isHiddenIfNotOwned: bool
    themeUuid: Optional[str] = None
    displayIcon: str
    assetPath: str
    levels: List[Level]

Classes

class Buddy (**data: Any)

Represents a buddy in Valorant.

Attributes

uuid : str
The unique identifier of the buddy.
displayName : str
The display name of the buddy.
isHiddenIfNotOwned : bool
Indicates whether the buddy is hidden if not owned.
themeUuid : Optional[str], optional
The unique identifier of the theme associated with the buddy. Defaults to None.
displayIcon : str
The display icon of the buddy.
assetPath : str
The asset path of the buddy.
levels : List[Level]
A list of levels associated with the buddy.

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 Buddy(BaseModel):
    """
    Represents a buddy in Valorant.

    Attributes:
        uuid (str): The unique identifier of the buddy.
        displayName (str): The display name of the buddy.
        isHiddenIfNotOwned (bool): Indicates whether the buddy is hidden if not owned.
        themeUuid (Optional[str], optional): The unique identifier of the theme associated with the buddy. Defaults to None.
        displayIcon (str): The display icon of the buddy.
        assetPath (str): The asset path of the buddy.
        levels (List[Level]): A list of levels associated with the buddy.
    """
    uuid: str
    displayName: str
    isHiddenIfNotOwned: bool
    themeUuid: Optional[str] = None
    displayIcon: str
    assetPath: str
    levels: List[Level]

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayIcon : str
var displayName : str
var isHiddenIfNotOwned : bool
var levels : List[Level]
var model_computed_fields
var model_config
var model_fields
var themeUuid : Optional[str]
var uuid : str
class Level (**data: Any)

Represents a level of a buddy in Valorant.

Attributes

uuid : str
The unique identifier of the level.
charmLevel : int
The level of charm associated with the buddy.
hideIfNotOwned : bool
Indicates whether the level should be hidden if not owned.
displayName : str
The display name of the level.
displayIcon : str
The icon associated with the level.
assetPath : str
The path to the asset file of the level.

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 Level(BaseModel):
    """
    Represents a level of a buddy in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the level.
        charmLevel (int): The level of charm associated with the buddy.
        hideIfNotOwned (bool): Indicates whether the level should be hidden if not owned.
        displayName (str): The display name of the level.
        displayIcon (str): The icon associated with the level.
        assetPath (str): The path to the asset file of the level.
    """
    uuid: str
    charmLevel: int
    hideIfNotOwned: bool
    displayName: str
    displayIcon: str
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var charmLevel : int
var displayIcon : str
var displayName : str
var hideIfNotOwned : bool
var model_computed_fields
var model_config
var model_fields
var uuid : str