# Code generated by Lark OpenAPI.

from typing import Callable, Type

from lark_oapi.event.processor import IEventProcessor
from .model.p2_application_application_app_version_audit_v6 import P2ApplicationApplicationAppVersionAuditV6
from .model.p2_application_application_app_version_publish_apply_v6 import \
    P2ApplicationApplicationAppVersionPublishApplyV6
from .model.p2_application_application_app_version_publish_revoke_v6 import \
    P2ApplicationApplicationAppVersionPublishRevokeV6
from .model.p2_application_application_created_v6 import P2ApplicationApplicationCreatedV6
from .model.p2_application_application_feedback_created_v6 import P2ApplicationApplicationFeedbackCreatedV6
from .model.p2_application_application_feedback_updated_v6 import P2ApplicationApplicationFeedbackUpdatedV6
from .model.p2_application_application_visibility_added_v6 import P2ApplicationApplicationVisibilityAddedV6
from .model.p2_application_bot_menu_v6 import P2ApplicationBotMenuV6


class P2ApplicationApplicationCreatedV6Processor(IEventProcessor[P2ApplicationApplicationCreatedV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationCreatedV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationCreatedV6]:
        return P2ApplicationApplicationCreatedV6

    def do(self, data: P2ApplicationApplicationCreatedV6) -> None:
        self.f(data)


class P2ApplicationApplicationAppVersionAuditV6Processor(IEventProcessor[P2ApplicationApplicationAppVersionAuditV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationAppVersionAuditV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationAppVersionAuditV6]:
        return P2ApplicationApplicationAppVersionAuditV6

    def do(self, data: P2ApplicationApplicationAppVersionAuditV6) -> None:
        self.f(data)


class P2ApplicationApplicationAppVersionPublishApplyV6Processor(
    IEventProcessor[P2ApplicationApplicationAppVersionPublishApplyV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationAppVersionPublishApplyV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationAppVersionPublishApplyV6]:
        return P2ApplicationApplicationAppVersionPublishApplyV6

    def do(self, data: P2ApplicationApplicationAppVersionPublishApplyV6) -> None:
        self.f(data)


class P2ApplicationApplicationAppVersionPublishRevokeV6Processor(
    IEventProcessor[P2ApplicationApplicationAppVersionPublishRevokeV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationAppVersionPublishRevokeV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationAppVersionPublishRevokeV6]:
        return P2ApplicationApplicationAppVersionPublishRevokeV6

    def do(self, data: P2ApplicationApplicationAppVersionPublishRevokeV6) -> None:
        self.f(data)


class P2ApplicationApplicationFeedbackCreatedV6Processor(IEventProcessor[P2ApplicationApplicationFeedbackCreatedV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationFeedbackCreatedV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationFeedbackCreatedV6]:
        return P2ApplicationApplicationFeedbackCreatedV6

    def do(self, data: P2ApplicationApplicationFeedbackCreatedV6) -> None:
        self.f(data)


class P2ApplicationApplicationFeedbackUpdatedV6Processor(IEventProcessor[P2ApplicationApplicationFeedbackUpdatedV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationFeedbackUpdatedV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationFeedbackUpdatedV6]:
        return P2ApplicationApplicationFeedbackUpdatedV6

    def do(self, data: P2ApplicationApplicationFeedbackUpdatedV6) -> None:
        self.f(data)


class P2ApplicationApplicationVisibilityAddedV6Processor(IEventProcessor[P2ApplicationApplicationVisibilityAddedV6]):
    def __init__(self, f: Callable[[P2ApplicationApplicationVisibilityAddedV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationApplicationVisibilityAddedV6]:
        return P2ApplicationApplicationVisibilityAddedV6

    def do(self, data: P2ApplicationApplicationVisibilityAddedV6) -> None:
        self.f(data)


class P2ApplicationBotMenuV6Processor(IEventProcessor[P2ApplicationBotMenuV6]):
    def __init__(self, f: Callable[[P2ApplicationBotMenuV6], None]):
        self.f = f

    def type(self) -> Type[P2ApplicationBotMenuV6]:
        return P2ApplicationBotMenuV6

    def do(self, data: P2ApplicationBotMenuV6) -> None:
        self.f(data)
