# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class AvatarInfo(object):
    _types = {
        "avatar_72": str,
        "avatar_240": str,
        "avatar_640": str,
        "avatar_origin": str,
    }

    def __init__(self, d=None):
        self.avatar_72: Optional[str] = None
        self.avatar_240: Optional[str] = None
        self.avatar_640: Optional[str] = None
        self.avatar_origin: Optional[str] = None
        init(self, d, self._types)

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


class AvatarInfoBuilder(object):
    def __init__(self) -> None:
        self._avatar_info = AvatarInfo()

    def avatar_72(self, avatar_72: str) -> "AvatarInfoBuilder":
        self._avatar_info.avatar_72 = avatar_72
        return self

    def avatar_240(self, avatar_240: str) -> "AvatarInfoBuilder":
        self._avatar_info.avatar_240 = avatar_240
        return self

    def avatar_640(self, avatar_640: str) -> "AvatarInfoBuilder":
        self._avatar_info.avatar_640 = avatar_640
        return self

    def avatar_origin(self, avatar_origin: str) -> "AvatarInfoBuilder":
        self._avatar_info.avatar_origin = avatar_origin
        return self

    def build(self) -> "AvatarInfo":
        return self._avatar_info
