UNPKG

unifi-client

Version:

NodeJs client for Unifi products (https://www.ui.com/)

41 lines (40 loc) 1.9 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.GuestAuthorization = void 0; var _ObjectSubSite_1 = require("../commons/_ObjectSubSite"); var GuestAuthorization = /** @class */ (function (_super) { __extends(GuestAuthorization, _super); function GuestAuthorization(config, props) { var _this = _super.call(this, config) || this; if (props) { _this._id = props._id; _this.authorized_by = props.authorized_by; _this.end = props.end; _this.mac = props.mac; _this.site_id = props.site_id; _this.start = props.start; _this.qos_usage_quota = props.qos_usage_quota; _this.needVersion('qos_rate_max_up', props.qos_rate_max_up, undefined, false); _this.needVersion('qos_rate_max_down', props.qos_rate_max_down, undefined, false); _this.needVersion('qos_overwrite', props.qos_overwrite, undefined, false); } return _this; } return GuestAuthorization; }(_ObjectSubSite_1._ObjectSubSite)); exports.GuestAuthorization = GuestAuthorization;