# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .user_id import UserId


class Subscriber(object):
    _types = {
        "user_ids": List[UserId],
    }

    def __init__(self, d=None):
        self.user_ids: Optional[List[UserId]] = None
        init(self, d, self._types)

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


class SubscriberBuilder(object):
    def __init__(self) -> None:
        self._subscriber = Subscriber()

    def user_ids(self, user_ids: List[UserId]) -> "SubscriberBuilder":
        self._subscriber.user_ids = user_ids
        return self

    def build(self) -> "Subscriber":
        return self._subscriber
