<reponame>dontbanmeplz/dippy.core
from dippy.core.enums import GatewayCode
from pydantic import BaseModel, Field
from typing import Optional, Union


class Payload(BaseModel):
    op_code: GatewayCode = Field(alias="op")
    sequence_num: Optional[int] = Field(None, alias="s")
    event: Optional[str] = Field("", alias="t")
    data: Optional[Union[list, dict, int]] = Field(None, alias="d")

from dippy.core.enums import GatewayCode
from pydantic import BaseModel, Field
from typing import Optional, Union


class Payload(BaseModel):
    op_code: GatewayCode = Field(alias="op")
    sequence_num: Optional[int] = Field(None, alias="s")
    event: Optional[str] = Field("", alias="t")
    data: Optional[Union[list, dict, int]] = Field(None, alias="d")