Module valolyticspy.dtos.valorant_api.player_title

Expand source code
from pydantic import BaseModel
from typing import Optional

class PlayerTitle(BaseModel):
    """
    Represents a player title in the Valorant API.

    Attributes:
        uuid (str): The unique identifier for the player title.
        displayName (str, optional): The display name of the player title. Defaults to None.
        titleText (str, optional): The text of the player title. Defaults to None.
        isHiddenIfNotOwned (bool): Indicates whether the player title is hidden if not owned.
        assetPath (str): The path to the asset associated with the player title.
    """
    uuid: str
    displayName: Optional[str] = None
    titleText: Optional[str] = None
    isHiddenIfNotOwned: bool
    assetPath: str

Classes

class PlayerTitle (**data: Any)

Represents a player title in the Valorant API.

Attributes

uuid : str
The unique identifier for the player title.
displayName : str, optional
The display name of the player title. Defaults to None.
titleText : str, optional
The text of the player title. Defaults to None.
isHiddenIfNotOwned : bool
Indicates whether the player title is hidden if not owned.
assetPath : str
The path to the asset associated with the player title.

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 PlayerTitle(BaseModel):
    """
    Represents a player title in the Valorant API.

    Attributes:
        uuid (str): The unique identifier for the player title.
        displayName (str, optional): The display name of the player title. Defaults to None.
        titleText (str, optional): The text of the player title. Defaults to None.
        isHiddenIfNotOwned (bool): Indicates whether the player title is hidden if not owned.
        assetPath (str): The path to the asset associated with the player title.
    """
    uuid: str
    displayName: Optional[str] = None
    titleText: Optional[str] = None
    isHiddenIfNotOwned: bool
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayName : Optional[str]
var isHiddenIfNotOwned : bool
var model_computed_fields
var model_config
var model_fields
var titleText : Optional[str]
var uuid : str