Module valolyticspy.dtos.valorant_api.spray
Expand source code
from pydantic import BaseModel
from typing import List, Optional
class Level(BaseModel):
"""
Represents a level of a spray in Valorant.
Attributes:
uuid (str): The unique identifier of the level.
sprayLevel (int): The level of the spray.
displayName (str): The display name of the level.
displayIcon (Optional[str]): The optional display icon of the level.
assetPath (str): The asset path of the level.
"""
uuid: str
sprayLevel: int
displayName: str
displayIcon: Optional[str] = None
assetPath: str
class Spray(BaseModel):
"""
Represents a spray in the Valorant API.
Attributes:
uuid (str): The unique identifier of the spray.
displayName (str): The display name of the spray.
category (str, optional): The category of the spray. Defaults to None.
themeUuid (str, optional): The unique identifier of the theme associated with the spray. Defaults to None.
isNullSpray (bool): Indicates whether the spray is a null spray.
hideIfNotOwned (bool): Indicates whether the spray should be hidden if not owned.
displayIcon (str): The URL of the display icon for the spray.
fullIcon (str, optional): The URL of the full icon for the spray. Defaults to None.
fullTransparentIcon (str, optional): The URL of the full transparent icon for the spray. Defaults to None.
animationPng (str, optional): The URL of the PNG animation for the spray. Defaults to None.
animationGif (str, optional): The URL of the GIF animation for the spray. Defaults to None.
assetPath (str): The path to the asset file for the spray.
levels (List[Level]): A list of levels associated with the spray.
"""
uuid: str
displayName: str
category: Optional[str] = None
themeUuid: Optional[str] = None
isNullSpray: bool
hideIfNotOwned: bool
displayIcon: str
fullIcon: Optional[str] = None
fullTransparentIcon: Optional[str] = None
animationPng: Optional[str] = None
animationGif: Optional[str] = None
assetPath: str
levels: List[Level]
Classes
class Level (**data: Any)-
Represents a level of a spray in Valorant.
Attributes
uuid:str- The unique identifier of the level.
sprayLevel:int- The level of the spray.
displayName:str- The display name of the level.
displayIcon:Optional[str]- The optional display icon of the level.
assetPath:str- The asset path 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 spray in Valorant. Attributes: uuid (str): The unique identifier of the level. sprayLevel (int): The level of the spray. displayName (str): The display name of the level. displayIcon (Optional[str]): The optional display icon of the level. assetPath (str): The asset path of the level. """ uuid: str sprayLevel: int displayName: str displayIcon: Optional[str] = None assetPath: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar displayIcon : Optional[str]var displayName : strvar model_computed_fieldsvar model_configvar model_fieldsvar sprayLevel : intvar uuid : str
class Spray (**data: Any)-
Represents a spray in the Valorant API.
Attributes
uuid:str- The unique identifier of the spray.
displayName:str- The display name of the spray.
category:str, optional- The category of the spray. Defaults to None.
themeUuid:str, optional- The unique identifier of the theme associated with the spray. Defaults to None.
isNullSpray:bool- Indicates whether the spray is a null spray.
hideIfNotOwned:bool- Indicates whether the spray should be hidden if not owned.
displayIcon:str- The URL of the display icon for the spray.
fullIcon:str, optional- The URL of the full icon for the spray. Defaults to None.
fullTransparentIcon:str, optional- The URL of the full transparent icon for the spray. Defaults to None.
animationPng:str, optional- The URL of the PNG animation for the spray. Defaults to None.
animationGif:str, optional- The URL of the GIF animation for the spray. Defaults to None.
assetPath:str- The path to the asset file for the spray.
levels:List[Level]- A list of levels associated with the spray.
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 Spray(BaseModel): """ Represents a spray in the Valorant API. Attributes: uuid (str): The unique identifier of the spray. displayName (str): The display name of the spray. category (str, optional): The category of the spray. Defaults to None. themeUuid (str, optional): The unique identifier of the theme associated with the spray. Defaults to None. isNullSpray (bool): Indicates whether the spray is a null spray. hideIfNotOwned (bool): Indicates whether the spray should be hidden if not owned. displayIcon (str): The URL of the display icon for the spray. fullIcon (str, optional): The URL of the full icon for the spray. Defaults to None. fullTransparentIcon (str, optional): The URL of the full transparent icon for the spray. Defaults to None. animationPng (str, optional): The URL of the PNG animation for the spray. Defaults to None. animationGif (str, optional): The URL of the GIF animation for the spray. Defaults to None. assetPath (str): The path to the asset file for the spray. levels (List[Level]): A list of levels associated with the spray. """ uuid: str displayName: str category: Optional[str] = None themeUuid: Optional[str] = None isNullSpray: bool hideIfNotOwned: bool displayIcon: str fullIcon: Optional[str] = None fullTransparentIcon: Optional[str] = None animationPng: Optional[str] = None animationGif: Optional[str] = None assetPath: str levels: List[Level]Ancestors
- pydantic.main.BaseModel
Class variables
var animationGif : Optional[str]var animationPng : Optional[str]var assetPath : strvar category : Optional[str]var displayIcon : strvar displayName : strvar fullIcon : Optional[str]var fullTransparentIcon : Optional[str]var hideIfNotOwned : boolvar isNullSpray : boolvar levels : List[Level]var model_computed_fieldsvar model_configvar model_fieldsvar themeUuid : Optional[str]var uuid : str