# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class MeetingParticipantResult(object):
    _types = {
        "id": str,
        "user_type": int,
        "result": int,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.user_type: Optional[int] = None
        self.result: Optional[int] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "MeetingParticipantResultBuilder":
        return MeetingParticipantResultBuilder()


class MeetingParticipantResultBuilder(object):
    def __init__(self) -> None:
        self._meeting_participant_result = MeetingParticipantResult()

    def id(self, id: str) -> "MeetingParticipantResultBuilder":
        self._meeting_participant_result.id = id
        return self

    def user_type(self, user_type: int) -> "MeetingParticipantResultBuilder":
        self._meeting_participant_result.user_type = user_type
        return self

    def result(self, result: int) -> "MeetingParticipantResultBuilder":
        self._meeting_participant_result.result = result
        return self

    def build(self) -> "MeetingParticipantResult":
        return self._meeting_participant_result
