Module valolyticspy.dtos.valorant_api.shop_data

Expand source code
from pydantic import BaseModel
from typing import Optional

class GridPosition(BaseModel):
    """
    Represents the position of an item in a grid.

    Attributes:
        row (int): The row position of the item.
        column (int): The column position of the item.
    """
    row: int
    column: int

class ShopData(BaseModel):
    """
    Represents the data for an item in the shop.

    Attributes:
        cost (int): The cost of the item.
        category (str): The category of the item.
        shopOrderPriority (int): The priority of the item in the shop.
        categoryText (str): The text representation of the category.
        gridPosition (Optional[GridPosition]): The grid position of the item (optional).
        canBeTrashed (bool): Indicates whether the item can be trashed.
        image (Optional[str]): The image of the item (optional).
        newImage (str): The new image of the item.
        newImage2 (Optional[str]): The second new image of the item (optional).
        assetPath (str): The asset path of the item.
    """
    cost: int
    category: str
    shopOrderPriority: int
    categoryText: str
    gridPosition: Optional[GridPosition] = None
    canBeTrashed: bool
    image: Optional[str] = None
    newImage: str
    newImage2: Optional[str] = None
    assetPath: str

Classes

class GridPosition (**data: Any)

Represents the position of an item in a grid.

Attributes

row : int
The row position of the item.
column : int
The column position of the item.

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 GridPosition(BaseModel):
    """
    Represents the position of an item in a grid.

    Attributes:
        row (int): The row position of the item.
        column (int): The column position of the item.
    """
    row: int
    column: int

Ancestors

  • pydantic.main.BaseModel

Class variables

var column : int
var model_computed_fields
var model_config
var model_fields
var row : int
class ShopData (**data: Any)

Represents the data for an item in the shop.

Attributes

cost : int
The cost of the item.
category : str
The category of the item.
shopOrderPriority : int
The priority of the item in the shop.
categoryText : str
The text representation of the category.
gridPosition : Optional[GridPosition]
The grid position of the item (optional).
canBeTrashed : bool
Indicates whether the item can be trashed.
image : Optional[str]
The image of the item (optional).
newImage : str
The new image of the item.
newImage2 : Optional[str]
The second new image of the item (optional).
assetPath : str
The asset path of the item.

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 ShopData(BaseModel):
    """
    Represents the data for an item in the shop.

    Attributes:
        cost (int): The cost of the item.
        category (str): The category of the item.
        shopOrderPriority (int): The priority of the item in the shop.
        categoryText (str): The text representation of the category.
        gridPosition (Optional[GridPosition]): The grid position of the item (optional).
        canBeTrashed (bool): Indicates whether the item can be trashed.
        image (Optional[str]): The image of the item (optional).
        newImage (str): The new image of the item.
        newImage2 (Optional[str]): The second new image of the item (optional).
        assetPath (str): The asset path of the item.
    """
    cost: int
    category: str
    shopOrderPriority: int
    categoryText: str
    gridPosition: Optional[GridPosition] = None
    canBeTrashed: bool
    image: Optional[str] = None
    newImage: str
    newImage2: Optional[str] = None
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var canBeTrashed : bool
var category : str
var categoryText : str
var cost : int
var gridPosition : Optional[GridPosition]
var image : Optional[str]
var model_computed_fields
var model_config
var model_fields
var newImage : str
var newImage2 : Optional[str]
var shopOrderPriority : int