Module valolyticspy.dtos.riot.matchlist
Expand source code
from pydantic import BaseModel
from typing import List
class MatchlistEntryDto(BaseModel):
"""
Represents a matchlist entry.
Attributes:
matchId (str): The ID of the match.
gameStartTimeMillis (int): The start time of the game in milliseconds.
queueId (str): The ID of the queue.
"""
matchId: str
gameStartTimeMillis: int
queueId: str
class MatchlistDto(BaseModel):
"""
Represents a matchlist data transfer object.
Attributes:
puuid (str): The PUUID associated with the matchlist.
history (List[MatchlistEntryDto]): A list of matchlist entry data transfer objects.
"""
puuid: str
history: List[MatchlistEntryDto]
Classes
class MatchlistDto (**data: Any)-
Represents a matchlist data transfer object.
Attributes
puuid:str- The PUUID associated with the matchlist.
history:List[MatchlistEntryDto]- A list of matchlist entry data transfer objects.
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 MatchlistDto(BaseModel): """ Represents a matchlist data transfer object. Attributes: puuid (str): The PUUID associated with the matchlist. history (List[MatchlistEntryDto]): A list of matchlist entry data transfer objects. """ puuid: str history: List[MatchlistEntryDto]Ancestors
- pydantic.main.BaseModel
Class variables
var history : List[MatchlistEntryDto]var model_computed_fieldsvar model_configvar model_fieldsvar puuid : str
class MatchlistEntryDto (**data: Any)-
Represents a matchlist entry.
Attributes
matchId:str- The ID of the match.
gameStartTimeMillis:int- The start time of the game in milliseconds.
queueId:str- The ID of the queue.
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 MatchlistEntryDto(BaseModel): """ Represents a matchlist entry. Attributes: matchId (str): The ID of the match. gameStartTimeMillis (int): The start time of the game in milliseconds. queueId (str): The ID of the queue. """ matchId: str gameStartTimeMillis: int queueId: strAncestors
- pydantic.main.BaseModel
Class variables
var gameStartTimeMillis : intvar matchId : strvar model_computed_fieldsvar model_configvar model_fieldsvar queueId : str