# 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 .post_statistics import PostStatistics


class P2MomentsPostStatisticsUpdatedV1Data(object):
    _types = {
        "post_id": str,
        "statistics_type": int,
        "statistics": PostStatistics,
    }

    def __init__(self, d=None):
        self.post_id: Optional[str] = None
        self.statistics_type: Optional[int] = None
        self.statistics: Optional[PostStatistics] = None
        init(self, d, self._types)


class P2MomentsPostStatisticsUpdatedV1(EventContext):
    _types = {
        "event": P2MomentsPostStatisticsUpdatedV1Data
    }

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