Module valolyticspy.dtos.riot.recent_matches
Expand source code
from pydantic import BaseModel
from typing import List
class RecentMatchesDto(BaseModel):
"""
Represents a data transfer object for recent matches.
Attributes:
currentTime (str): The current time.
matchIds (List[str]): A list of match IDs.
"""
currentTime: str
matchIds: List[str]
Classes
class RecentMatchesDto (**data: Any)-
Represents a data transfer object for recent matches.
Attributes
currentTime:str- The current time.
matchIds:List[str]- A list of match IDs.
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 RecentMatchesDto(BaseModel): """ Represents a data transfer object for recent matches. Attributes: currentTime (str): The current time. matchIds (List[str]): A list of match IDs. """ currentTime: str matchIds: List[str]Ancestors
- pydantic.main.BaseModel
Class variables
var currentTime : strvar matchIds : List[str]var model_computed_fieldsvar model_configvar model_fields