# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type

from lark_oapi.event.processor import IEventProcessor
from .model.p2_apaas_workspace_record_change_v1 import P2ApaasWorkspaceRecordChangeV1


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

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

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