# 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 ReactionCount(object):
    _types = {
        "reaction_type": str,
        "count": str,
    }

    def __init__(self, d=None):
        self.reaction_type: Optional[str] = None
        self.count: Optional[str] = None
        init(self, d, self._types)

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


class ReactionCountBuilder(object):
    def __init__(self) -> None:
        self._reaction_count = ReactionCount()

    def reaction_type(self, reaction_type: str) -> "ReactionCountBuilder":
        self._reaction_count.reaction_type = reaction_type
        return self

    def count(self, count: str) -> "ReactionCountBuilder":
        self._reaction_count.count = count
        return self

    def build(self) -> "ReactionCount":
        return self._reaction_count
