UNPKG

stackexchange-api

Version:
17 lines (16 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * The equivalent of [Type related_site](https://api.stackexchange.com/docs/types/related-site).<br> * This object represents a [[Site]] that is related in some way to another [[Site]]. */ class RelatedSite { constructor(related_site) { var _a, _b, _c, _d, _e, _f, _g, _h; this.apiSiteParameter = (_b = (_a = related_site) === null || _a === void 0 ? void 0 : _a.api_site_parameter, (_b !== null && _b !== void 0 ? _b : null)); this.name = (_d = (_c = related_site) === null || _c === void 0 ? void 0 : _c.name, (_d !== null && _d !== void 0 ? _d : null)); this.relation = (_f = (_e = related_site) === null || _e === void 0 ? void 0 : _e.relation, (_f !== null && _f !== void 0 ? _f : null)); this.siteUrl = (_h = (_g = related_site) === null || _g === void 0 ? void 0 : _g.site_url, (_h !== null && _h !== void 0 ? _h : null)); } } exports.RelatedSite = RelatedSite;