import { NodeEventType } from "./NodeEventType"; export class NodeEvent { tenant: string; payload: string; type: NodeEventType; constructor(tenant:string, payload: string, type: NodeEventType) { if (payload == null) { throw new Error("payload cannot be null"); } if (tenant == null) { throw new Error("tenantId cannot be null"); } this.tenant = tenant; this.payload = payload; this.type = type; } }