cloudhub-playback-sdk
Version:
CloudHubPlaybackSDK
29 lines (28 loc) • 1.03 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Action_1 = __importDefault(require("./Action"));
const global_1 = __importDefault(require("../global"));
const Logger_1 = __importDefault(require("../Logger"));
class DelMsgAction extends Action_1.default {
constructor(jsonString, room) {
super(jsonString, room);
this.eventType = global_1.default.eventType.delMsg;
Logger_1.default.info(`DelMsgAction`, this);
}
toEventObject() {
return {
msgId: this.data.id,
msgName: this.data.name,
fromId: this.data.fromID,
toId: this.data.toID,
associatedUserId: this.data.associatedUserID,
associatedMsgId: this.data.associatedMsgID,
ts: this.data.ts,
data: this.data.data
};
}
}
exports.default = DelMsgAction;