# 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 BatchMessageReadUser(object):
    _types = {
        "read_count": str,
        "total_count": str,
    }

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

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


class BatchMessageReadUserBuilder(object):
    def __init__(self) -> None:
        self._batch_message_read_user = BatchMessageReadUser()

    def read_count(self, read_count: str) -> "BatchMessageReadUserBuilder":
        self._batch_message_read_user.read_count = read_count
        return self

    def total_count(self, total_count: str) -> "BatchMessageReadUserBuilder":
        self._batch_message_read_user.total_count = total_count
        return self

    def build(self) -> "BatchMessageReadUser":
        return self._batch_message_read_user
