import { Payload, PayloadBody, HandlerPayload, Publisher, Consumer, BaseEventHandler, DefaultVersionSchedule } from 'ec-base'
export { Publisher as DemoTopicPublisher }
export { Consumer, BaseEventHandler, DefaultVersionSchedule }




    export type DemoTopicPayloadBody = {
        userName?: string
        userId?: string
    }

export class DemoTopicPayload extends Payload {

    getTopic(): string { return 'demo-topic' }
    getVersion(): string { return '1.3' }
    getMajorVersion(): number { return 1 }
    body: DemoTopicPayloadBody
}
export class DemoTopicHandlerPayload extends HandlerPayload {

    body: DemoTopicPayloadBody
}
