import { Client } from '../client' import { MessageRequest } from '../types' export class MessageEvent { protected _client: Client protected _requestPayload: MessageRequest protected _requestId: string private readonly _childDeviceId: string | undefined constructor(client: Client, payload: MessageRequest, childDeviceId?: string) { this._client = client this._requestPayload = payload this._requestId = payload.requestId this._childDeviceId = childDeviceId } public get params (): any { return this._requestPayload.params } public get childDeviceId(): string | undefined { return this._childDeviceId } }