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