import { CommunicationEventType } from ".." ; import { TopicEvent , TopicEventData } from "./communication-event" ; /**
 * Raw event.
 */ export class RawEvent extends TopicEvent < RawEventData > { get eventType ( ) { return CommunicationEventType . Raw ; } internal param topic param eventData param options constructor ( topic , eventData , options ? ) { super ( topic , eventData , options ) ; } remarks param topic param payload param options static withTopicAndPayload ( topic , payload , options ? ) { return new RawEvent ( topic , new RawEventData ( payload ) , options ) ; } } /**
 * Defines event data format for raw events.
 */ export class RawEventData extends TopicEventData { param payload constructor ( payload ) { super ( ) ; this . payload = payload ; } internal static createFrom ( eventData ) { return new RawEventData ( eventData ) ; } toJsonObject ( ) { return undefined ; } }