# Code generated by Lark OpenAPI.

from typing import Optional, List

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


class P2ApplicationApplicationFeedbackCreatedV6Data(object):
    _types = {
        "user_id": UserId,
        "app_id": str,
        "feedback_time": str,
        "tenant_name": str,
        "feedback_type": int,
        "fault_type": List[int],
        "fault_time": str,
        "source": int,
        "contact": str,
        "description": str,
        "images": List[str],
        "feedback_id": str,
        "feedback_path": str,
    }

    def __init__(self, d=None):
        self.user_id: Optional[UserId] = None
        self.app_id: Optional[str] = None
        self.feedback_time: Optional[str] = None
        self.tenant_name: Optional[str] = None
        self.feedback_type: Optional[int] = None
        self.fault_type: Optional[List[int]] = None
        self.fault_time: Optional[str] = None
        self.source: Optional[int] = None
        self.contact: Optional[str] = None
        self.description: Optional[str] = None
        self.images: Optional[List[str]] = None
        self.feedback_id: Optional[str] = None
        self.feedback_path: Optional[str] = None
        init(self, d, self._types)


class P2ApplicationApplicationFeedbackCreatedV6(EventContext):
    _types = {
        "event": P2ApplicationApplicationFeedbackCreatedV6Data
    }

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