UNPKG

stackexchange-api

Version:
18 lines (17 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * The equivalent of [Type original_question](https://api.stackexchange.com/docs/types/original-question).<br> * This object represents an "original" [[Question]] that another was closed as a duplicate of.<br> * This object is mostly analogous to a row in the "gray box" that appears in Questions closed as duplicates which lists Original Questions. */ class OriginalQuestion { constructor(original_question) { var _a, _b, _c, _d, _e, _f, _g, _h; this.acceptedAnswerId = (_b = (_a = original_question) === null || _a === void 0 ? void 0 : _a.accepted_answer_id, (_b !== null && _b !== void 0 ? _b : null)); this.answerCount = (_d = (_c = original_question) === null || _c === void 0 ? void 0 : _c.answer_count, (_d !== null && _d !== void 0 ? _d : null)); this.questionId = (_f = (_e = original_question) === null || _e === void 0 ? void 0 : _e.question_id, (_f !== null && _f !== void 0 ? _f : null)); this.title = (_h = (_g = original_question) === null || _g === void 0 ? void 0 : _g.title, (_h !== null && _h !== void 0 ? _h : null)); } } exports.OriginalQuestion = OriginalQuestion;