@brayjamin/tba-api-v3client
Version:
_Overview__Information_and_statistics_about_FIRST_Robotics_Competition_teams_and_events___Authentication_All_endpoints_require_an_Auth_Key_to_be_passed_in_the_header_X_TBA_Auth_Key__If_you_do_not_have_an_auth_key_yet_you_can_obtain_one_from_your__Account_
129 lines (119 loc) • 6.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _TeamEventStatusAlliance = _interopRequireDefault(require("./TeamEventStatusAlliance"));
var _TeamEventStatusPlayoff = _interopRequireDefault(require("./TeamEventStatusPlayoff"));
var _TeamEventStatusRank = _interopRequireDefault(require("./TeamEventStatusRank"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
/**
* The TeamEventStatus model module.
* @module model/TeamEventStatus
* @version 3.8.0
*/
var TeamEventStatus = /*#__PURE__*/function () {
/**
* Constructs a new <code>TeamEventStatus</code>.
* @alias module:model/TeamEventStatus
*/
function TeamEventStatus() {
_classCallCheck(this, TeamEventStatus);
TeamEventStatus.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
_createClass(TeamEventStatus, null, [{
key: "initialize",
value: function initialize(obj) {}
/**
* Constructs a <code>TeamEventStatus</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/TeamEventStatus} obj Optional instance to populate.
* @return {module:model/TeamEventStatus} The populated <code>TeamEventStatus</code> instance.
*/
}, {
key: "constructFromObject",
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new TeamEventStatus();
if (data.hasOwnProperty('qual')) {
obj['qual'] = _TeamEventStatusRank["default"].constructFromObject(data['qual']);
}
if (data.hasOwnProperty('alliance')) {
obj['alliance'] = _TeamEventStatusAlliance["default"].constructFromObject(data['alliance']);
}
if (data.hasOwnProperty('playoff')) {
obj['playoff'] = _TeamEventStatusPlayoff["default"].constructFromObject(data['playoff']);
}
if (data.hasOwnProperty('alliance_status_str')) {
obj['alliance_status_str'] = _ApiClient["default"].convertToType(data['alliance_status_str'], 'String');
}
if (data.hasOwnProperty('playoff_status_str')) {
obj['playoff_status_str'] = _ApiClient["default"].convertToType(data['playoff_status_str'], 'String');
}
if (data.hasOwnProperty('overall_status_str')) {
obj['overall_status_str'] = _ApiClient["default"].convertToType(data['overall_status_str'], 'String');
}
if (data.hasOwnProperty('next_match_key')) {
obj['next_match_key'] = _ApiClient["default"].convertToType(data['next_match_key'], 'String');
}
if (data.hasOwnProperty('last_match_key')) {
obj['last_match_key'] = _ApiClient["default"].convertToType(data['last_match_key'], 'String');
}
}
return obj;
}
}]);
return TeamEventStatus;
}();
/**
* @member {module:model/TeamEventStatusRank} qual
*/
TeamEventStatus.prototype['qual'] = undefined;
/**
* @member {module:model/TeamEventStatusAlliance} alliance
*/
TeamEventStatus.prototype['alliance'] = undefined;
/**
* @member {module:model/TeamEventStatusPlayoff} playoff
*/
TeamEventStatus.prototype['playoff'] = undefined;
/**
* An HTML formatted string suitable for display to the user containing the team's alliance pick status.
* @member {String} alliance_status_str
*/
TeamEventStatus.prototype['alliance_status_str'] = undefined;
/**
* An HTML formatter string suitable for display to the user containing the team's playoff status.
* @member {String} playoff_status_str
*/
TeamEventStatus.prototype['playoff_status_str'] = undefined;
/**
* An HTML formatted string suitable for display to the user containing the team's overall status summary of the event.
* @member {String} overall_status_str
*/
TeamEventStatus.prototype['overall_status_str'] = undefined;
/**
* TBA match key for the next match the team is scheduled to play in at this event, or null.
* @member {String} next_match_key
*/
TeamEventStatus.prototype['next_match_key'] = undefined;
/**
* TBA match key for the last match the team played in at this event, or null.
* @member {String} last_match_key
*/
TeamEventStatus.prototype['last_match_key'] = undefined;
var _default = TeamEventStatus;
exports["default"] = _default;