Module valolyticspy.dtos.valorant_api.event

Expand source code
from pydantic import BaseModel
from datetime import datetime

class Event(BaseModel):
    """
    Represents an event in the Valorant API.

    Attributes:
        uuid (str): The unique identifier of the event.
        displayName (str): The display name of the event.
        shortDisplayName (str): The short display name of the event.
        startTime (datetime): The start time of the event.
        endTime (datetime): The end time of the event.
        assetPath (str): The asset path of the event.
    """
    uuid: str
    displayName: str
    shortDisplayName: str
    startTime: datetime
    endTime: datetime
    assetPath: str

Classes

class Event (**data: Any)

Represents an event in the Valorant API.

Attributes

uuid : str
The unique identifier of the event.
displayName : str
The display name of the event.
shortDisplayName : str
The short display name of the event.
startTime : datetime
The start time of the event.
endTime : datetime
The end time of the event.
assetPath : str
The asset path of the event.

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 Event(BaseModel):
    """
    Represents an event in the Valorant API.

    Attributes:
        uuid (str): The unique identifier of the event.
        displayName (str): The display name of the event.
        shortDisplayName (str): The short display name of the event.
        startTime (datetime): The start time of the event.
        endTime (datetime): The end time of the event.
        assetPath (str): The asset path of the event.
    """
    uuid: str
    displayName: str
    shortDisplayName: str
    startTime: datetime
    endTime: datetime
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayName : str
var endTime : datetime.datetime
var model_computed_fields
var model_config
var model_fields
var shortDisplayName : str
var startTime : datetime.datetime
var uuid : str