stackexchange-api
Version:
A Node.js wrapper for the StackExchange API
16 lines (15 loc) • 748 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* The equivalent of [Type notice](https://api.stackexchange.com/docs/types/notice).<br>
* Represents a Notice on a [[Post]].
*/
class Notice {
constructor(notice) {
var _a, _b, _c, _d, _e, _f;
this.body = (_b = (_a = notice) === null || _a === void 0 ? void 0 : _a.body, (_b !== null && _b !== void 0 ? _b : null));
this.creationDate = (_d = (_c = notice) === null || _c === void 0 ? void 0 : _c.creation_date, (_d !== null && _d !== void 0 ? _d : null));
this.ownerUserId = (_f = (_e = notice) === null || _e === void 0 ? void 0 : _e.owner_user_id, (_f !== null && _f !== void 0 ? _f : null));
}
}
exports.Notice = Notice;