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.

self is explicitly positional-only to allow self as 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_fields
var model_config
var model_fields
var 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.

self is explicitly positional-only to allow self as 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: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var gameStartTimeMillis : int
var matchId : str
var model_computed_fields
var model_config
var model_fields
var queueId : str