rcs-data
Version:
RCS消息数据结构
42 lines • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RcsMsgMono = void 0;
const RcsMsgBase_1 = require("./RcsMsgBase");
const common_1 = require("../common");
class RcsMsgMono extends RcsMsgBase_1.RcsMsgBase {
constructor(mime, from, to) {
super(mime);
this.from = from;
this.to = to;
}
get messageId() {
return null;
}
set from(value) {
if (value)
this._from =
typeof value === 'string' ? common_1.NameAddrHeader.parse(value) : value;
else
this._from = undefined;
}
get from() {
return this._from;
}
set to(value) {
if (value)
this._to = typeof value === 'string' ? common_1.NameAddrHeader.parse(value) : value;
else
this._to = undefined;
}
get to() {
return this._to;
}
get dateTime() {
return null;
}
get suggestions() {
return null;
}
}
exports.RcsMsgMono = RcsMsgMono;
//# sourceMappingURL=RcsMsgMono.js.map