UNPKG

yimultiscreenserver-sdk-web

Version:

YiMultiScreenServer SDK for Web

30 lines 1.18 kB
import { AccountBindDeviceVO } from "../../../vo/account/AccountBindDeviceVO"; import { BindDeviceAction } from "./BindDeviceAction"; import { MsgClientType } from "./MsgClientType"; import { MsgType } from "./MsgType"; import { YMSMessage } from "./YMSMessage"; export class AccountBindDeviceMessage extends YMSMessage { constructor() { super(MsgClientType.SERVER, MsgClientType.ANY, MsgType.BIND_DEVICE); this.accountBindDevice = new AccountBindDeviceVO(); this.bindDeviceAction = BindDeviceAction.BIND; } getQoS() { return 1; } isRetained() { return false; } toString() { return `AccountBindDeviceMessage{` + `timestamp=${this.timestamp}, ` + `sender=${MsgClientType[this.sender]}, ` + `receiver='${MsgClientType[this.receiver]}, ` + `msgType=${MsgType[this.msgType]}, ` + `senderClientId='${this.senderClientId}', ` + `accountBindDevice=${this.accountBindDevice.toString()}, ` + `bindDeviceAction=${BindDeviceAction[this.bindDeviceAction]}` + `}`; } } //# sourceMappingURL=AccountBindDeviceMessage.js.map