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.selfis explicitly positional-only to allowselfas 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: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar displayName : Optional[str]var isHiddenIfNotOwned : boolvar model_computed_fieldsvar model_configvar model_fieldsvar titleText : Optional[str]var uuid : str