# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .user_daily_shift import UserDailyShift


class QueryUserDailyShiftResponseBody(object):
    _types = {
        "user_daily_shifts": List[UserDailyShift],
    }

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

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


class QueryUserDailyShiftResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_user_daily_shift_response_body = QueryUserDailyShiftResponseBody()

    def user_daily_shifts(self, user_daily_shifts: List[UserDailyShift]) -> "QueryUserDailyShiftResponseBodyBuilder":
        self._query_user_daily_shift_response_body.user_daily_shifts = user_daily_shifts
        return self

    def build(self) -> "QueryUserDailyShiftResponseBody":
        return self._query_user_daily_shift_response_body
