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.selfis explicitly positional-only to allowselfas 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: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar displayName : strvar endTime : datetime.datetimevar model_computed_fieldsvar model_configvar model_fieldsvar shortDisplayName : strvar startTime : datetime.datetimevar uuid : str