# 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 SeatActivity(object):
    _types = {
        "user_id": int,
        "namespace": str,
        "status": str,
        "active_time": int,
    }

    def __init__(self, d=None):
        self.user_id: Optional[int] = None
        self.namespace: Optional[str] = None
        self.status: Optional[str] = None
        self.active_time: Optional[int] = None
        init(self, d, self._types)

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


class SeatActivityBuilder(object):
    def __init__(self) -> None:
        self._seat_activity = SeatActivity()

    def user_id(self, user_id: int) -> "SeatActivityBuilder":
        self._seat_activity.user_id = user_id
        return self

    def namespace(self, namespace: str) -> "SeatActivityBuilder":
        self._seat_activity.namespace = namespace
        return self

    def status(self, status: str) -> "SeatActivityBuilder":
        self._seat_activity.status = status
        return self

    def active_time(self, active_time: int) -> "SeatActivityBuilder":
        self._seat_activity.active_time = active_time
        return self

    def build(self) -> "SeatActivity":
        return self._seat_activity
