# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .user_id import UserId


class P2ApplicationApplicationCreatedV6Data(object):
    _types = {
        "operator_id": UserId,
        "app_id": str,
        "name": str,
        "description": str,
        "avatar": str,
        "app_scene_type": int,
        "primary_language": str,
    }

    def __init__(self, d=None):
        self.operator_id: Optional[UserId] = None
        self.app_id: Optional[str] = None
        self.name: Optional[str] = None
        self.description: Optional[str] = None
        self.avatar: Optional[str] = None
        self.app_scene_type: Optional[int] = None
        self.primary_language: Optional[str] = None
        init(self, d, self._types)


class P2ApplicationApplicationCreatedV6(EventContext):
    _types = {
        "event": P2ApplicationApplicationCreatedV6Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2ApplicationApplicationCreatedV6Data] = None
        init(self, d, self._types)
