UNPKG

cloudhub-playback-sdk

Version:

CloudHubPlaybackSDK

24 lines (23 loc) 820 B
"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 Logger_1 = __importDefault(require("../Logger")); const global_1 = __importDefault(require("../global")); class SetPropertyAction extends Action_1.default { constructor(jsonString, room) { super(jsonString, room); this.eventType = global_1.default.eventType.setProperty; Logger_1.default.info(`SetPropertyAction`, this); } toEventObject() { return { userId: this.id, fromId: '', properties: this.properties }; } } exports.default = SetPropertyAction;