Module valolyticspy.dtos.valorant_api.player_card

Expand source code
from pydantic import BaseModel
from typing import Optional

class PlayerCard(BaseModel):
    """
    Represents a player card in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the player card.
        displayName (str): The display name of the player card.
        isHiddenIfNotOwned (bool): Indicates whether the player card is hidden if not owned.
        themeUuid (Optional[str], optional): The unique identifier of the theme associated with the player card. Defaults to None.
        displayIcon (str): The URL of the display icon for the player card.
        smallArt (str): The URL of the small art for the player card.
        wideArt (str): The URL of the wide art for the player card.
        largeArt (str): The URL of the large art for the player card.
        assetPath (str): The path to the asset file for the player card.
    """
    uuid: str
    displayName: str
    isHiddenIfNotOwned: bool
    themeUuid: Optional[str] = None
    displayIcon: str
    smallArt: str
    wideArt: str
    largeArt: str
    assetPath: str

Classes

class PlayerCard (**data: Any)

Represents a player card in Valorant.

Attributes

uuid : str
The unique identifier of the player card.
displayName : str
The display name of the player card.
isHiddenIfNotOwned : bool
Indicates whether the player card is hidden if not owned.
themeUuid : Optional[str], optional
The unique identifier of the theme associated with the player card. Defaults to None.
displayIcon : str
The URL of the display icon for the player card.
smallArt : str
The URL of the small art for the player card.
wideArt : str
The URL of the wide art for the player card.
largeArt : str
The URL of the large art for the player card.
assetPath : str
The path to the asset file for the player card.

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 PlayerCard(BaseModel):
    """
    Represents a player card in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the player card.
        displayName (str): The display name of the player card.
        isHiddenIfNotOwned (bool): Indicates whether the player card is hidden if not owned.
        themeUuid (Optional[str], optional): The unique identifier of the theme associated with the player card. Defaults to None.
        displayIcon (str): The URL of the display icon for the player card.
        smallArt (str): The URL of the small art for the player card.
        wideArt (str): The URL of the wide art for the player card.
        largeArt (str): The URL of the large art for the player card.
        assetPath (str): The path to the asset file for the player card.
    """
    uuid: str
    displayName: str
    isHiddenIfNotOwned: bool
    themeUuid: Optional[str] = None
    displayIcon: str
    smallArt: str
    wideArt: str
    largeArt: str
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayIcon : str
var displayName : str
var isHiddenIfNotOwned : bool
var largeArt : str
var model_computed_fields
var model_config
var model_fields
var smallArt : str
var themeUuid : Optional[str]
var uuid : str
var wideArt : str