# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .meeting_event_meeting import MeetingEventMeeting
from .meeting_event_user import MeetingEventUser


class P2VcMeetingLeaveMeetingV1Data(object):
    _types = {
        "meeting": MeetingEventMeeting,
        "operator": MeetingEventUser,
        "leave_reason": int,
        "leave_user": MeetingEventUser,
    }

    def __init__(self, d=None):
        self.meeting: Optional[MeetingEventMeeting] = None
        self.operator: Optional[MeetingEventUser] = None
        self.leave_reason: Optional[int] = None
        self.leave_user: Optional[MeetingEventUser] = None
        init(self, d, self._types)


class P2VcMeetingLeaveMeetingV1(EventContext):
    _types = {
        "event": P2VcMeetingLeaveMeetingV1Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2VcMeetingLeaveMeetingV1Data] = None
        init(self, d, self._types)
