Module valolyticspy.dtos.valorant_api.theme

Expand source code
from pydantic import BaseModel
from typing import Optional

class Theme(BaseModel):
    """
    Represents a theme in the Valorant API.

    Attributes:
        uuid (str): The UUID of the theme.
        displayName (str): The display name of the theme.
        displayIcon (Optional[str]): The display icon of the theme, if available.
        storeFeaturedImage (Optional[str]): The featured image of the theme in the store, if available.
        assetPath (str): The asset path of the theme.
    """
    uuid: str
    displayName: str
    displayIcon: Optional[str] = None
    storeFeaturedImage: Optional[str] = None
    assetPath: str

Classes

class Theme (**data: Any)

Represents a theme in the Valorant API.

Attributes

uuid : str
The UUID of the theme.
displayName : str
The display name of the theme.
displayIcon : Optional[str]
The display icon of the theme, if available.
storeFeaturedImage : Optional[str]
The featured image of the theme in the store, if available.
assetPath : str
The asset path of the theme.

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

    Attributes:
        uuid (str): The UUID of the theme.
        displayName (str): The display name of the theme.
        displayIcon (Optional[str]): The display icon of the theme, if available.
        storeFeaturedImage (Optional[str]): The featured image of the theme in the store, if available.
        assetPath (str): The asset path of the theme.
    """
    uuid: str
    displayName: str
    displayIcon: Optional[str] = None
    storeFeaturedImage: Optional[str] = None
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayIcon : Optional[str]
var displayName : str
var model_computed_fields
var model_config
var model_fields
var storeFeaturedImage : Optional[str]
var uuid : str