rcs-data
Version:
RCS消息数据结构
20 lines • 570 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.factory = void 0;
const entity_1 = require("./entity");
function factory(data) {
let entity = new entity_1.Entity();
data = data || {};
if (data.contentType) {
entity.contentType = data.contentType;
}
if (data.contentTransferEncoding) {
entity.contentTransferEncoding = data.contentTransferEncoding;
}
if (data.body) {
entity.body = data.body;
}
return entity;
}
exports.factory = factory;
//# sourceMappingURL=factory.js.map