UNPKG

wechat-work

Version:
23 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AppMessageBase = /** @class */ (function () { function AppMessageBase(targetUserIds, targetDepartmentIds, targetTags, agentId, messageType, safe) { if (targetUserIds === void 0) { targetUserIds = []; } if (targetDepartmentIds === void 0) { targetDepartmentIds = []; } if (targetTags === void 0) { targetTags = []; } if (safe === void 0) { safe = 0; } this.touser = targetUserIds.length > 0 ? targetUserIds.join("|") : undefined; this.toparty = targetDepartmentIds.length > 0 ? targetDepartmentIds.join("|") : undefined; this.totag = targetTags.length > 0 ? targetTags.join("|") : undefined; this.agentid = agentId; this.safe = safe; this.msgtype = messageType; } return AppMessageBase; }()); exports.AppMessageBase = AppMessageBase; //# sourceMappingURL=app-message-base.class.js.map