# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .user_id import UserId


class P2MomentsCommentCreatedV1Data(object):
    _types = {
        "user_id": UserId,
        "id": str,
        "create_time": str,
        "post_id": str,
        "reply_comment_id": str,
        "root_comment_id": str,
        "user_type": int,
    }

    def __init__(self, d=None):
        self.user_id: Optional[UserId] = None
        self.id: Optional[str] = None
        self.create_time: Optional[str] = None
        self.post_id: Optional[str] = None
        self.reply_comment_id: Optional[str] = None
        self.root_comment_id: Optional[str] = None
        self.user_type: Optional[int] = None
        init(self, d, self._types)


class P2MomentsCommentCreatedV1(EventContext):
    _types = {
        "event": P2MomentsCommentCreatedV1Data
    }

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