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.selfis explicitly positional-only to allowselfas 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: intAncestors
- pydantic.main.BaseModel
Class variables
var column : intvar model_computed_fieldsvar model_configvar model_fieldsvar 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.selfis explicitly positional-only to allowselfas 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: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar canBeTrashed : boolvar category : strvar categoryText : strvar cost : intvar gridPosition : Optional[GridPosition]var image : Optional[str]var model_computed_fieldsvar model_configvar model_fieldsvar newImage : strvar newImage2 : Optional[str]var shopOrderPriority : int