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.selfis explicitly positional-only to allowselfas 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 : strvar displayIcon : strvar displayName : strvar isHiddenIfNotOwned : boolvar levels : List[Level]var model_computed_fieldsvar model_configvar model_fieldsvar 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.selfis explicitly positional-only to allowselfas 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: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar charmLevel : intvar displayIcon : strvar displayName : strvar hideIfNotOwned : boolvar model_computed_fieldsvar model_configvar model_fieldsvar uuid : str