UNPKG

@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_

430 lines (387 loc) 15.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); 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 MatchScoreBreakdown2016Alliance model module. * @module model/MatchScoreBreakdown2016Alliance * @version 3.8.0 */ var MatchScoreBreakdown2016Alliance = /*#__PURE__*/function () { /** * Constructs a new <code>MatchScoreBreakdown2016Alliance</code>. * @alias module:model/MatchScoreBreakdown2016Alliance */ function MatchScoreBreakdown2016Alliance() { _classCallCheck(this, MatchScoreBreakdown2016Alliance); MatchScoreBreakdown2016Alliance.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(MatchScoreBreakdown2016Alliance, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>MatchScoreBreakdown2016Alliance</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/MatchScoreBreakdown2016Alliance} obj Optional instance to populate. * @return {module:model/MatchScoreBreakdown2016Alliance} The populated <code>MatchScoreBreakdown2016Alliance</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new MatchScoreBreakdown2016Alliance(); if (data.hasOwnProperty('autoPoints')) { obj['autoPoints'] = _ApiClient["default"].convertToType(data['autoPoints'], 'Number'); } if (data.hasOwnProperty('teleopPoints')) { obj['teleopPoints'] = _ApiClient["default"].convertToType(data['teleopPoints'], 'Number'); } if (data.hasOwnProperty('breachPoints')) { obj['breachPoints'] = _ApiClient["default"].convertToType(data['breachPoints'], 'Number'); } if (data.hasOwnProperty('foulPoints')) { obj['foulPoints'] = _ApiClient["default"].convertToType(data['foulPoints'], 'Number'); } if (data.hasOwnProperty('capturePoints')) { obj['capturePoints'] = _ApiClient["default"].convertToType(data['capturePoints'], 'Number'); } if (data.hasOwnProperty('adjustPoints')) { obj['adjustPoints'] = _ApiClient["default"].convertToType(data['adjustPoints'], 'Number'); } if (data.hasOwnProperty('totalPoints')) { obj['totalPoints'] = _ApiClient["default"].convertToType(data['totalPoints'], 'Number'); } if (data.hasOwnProperty('robot1Auto')) { obj['robot1Auto'] = _ApiClient["default"].convertToType(data['robot1Auto'], 'String'); } if (data.hasOwnProperty('robot2Auto')) { obj['robot2Auto'] = _ApiClient["default"].convertToType(data['robot2Auto'], 'String'); } if (data.hasOwnProperty('robot3Auto')) { obj['robot3Auto'] = _ApiClient["default"].convertToType(data['robot3Auto'], 'String'); } if (data.hasOwnProperty('autoReachPoints')) { obj['autoReachPoints'] = _ApiClient["default"].convertToType(data['autoReachPoints'], 'Number'); } if (data.hasOwnProperty('autoCrossingPoints')) { obj['autoCrossingPoints'] = _ApiClient["default"].convertToType(data['autoCrossingPoints'], 'Number'); } if (data.hasOwnProperty('autoBouldersLow')) { obj['autoBouldersLow'] = _ApiClient["default"].convertToType(data['autoBouldersLow'], 'Number'); } if (data.hasOwnProperty('autoBouldersHigh')) { obj['autoBouldersHigh'] = _ApiClient["default"].convertToType(data['autoBouldersHigh'], 'Number'); } if (data.hasOwnProperty('autoBoulderPoints')) { obj['autoBoulderPoints'] = _ApiClient["default"].convertToType(data['autoBoulderPoints'], 'Number'); } if (data.hasOwnProperty('teleopCrossingPoints')) { obj['teleopCrossingPoints'] = _ApiClient["default"].convertToType(data['teleopCrossingPoints'], 'Number'); } if (data.hasOwnProperty('teleopBouldersLow')) { obj['teleopBouldersLow'] = _ApiClient["default"].convertToType(data['teleopBouldersLow'], 'Number'); } if (data.hasOwnProperty('teleopBouldersHigh')) { obj['teleopBouldersHigh'] = _ApiClient["default"].convertToType(data['teleopBouldersHigh'], 'Number'); } if (data.hasOwnProperty('teleopBoulderPoints')) { obj['teleopBoulderPoints'] = _ApiClient["default"].convertToType(data['teleopBoulderPoints'], 'Number'); } if (data.hasOwnProperty('teleopDefensesBreached')) { obj['teleopDefensesBreached'] = _ApiClient["default"].convertToType(data['teleopDefensesBreached'], 'Boolean'); } if (data.hasOwnProperty('teleopChallengePoints')) { obj['teleopChallengePoints'] = _ApiClient["default"].convertToType(data['teleopChallengePoints'], 'Number'); } if (data.hasOwnProperty('teleopScalePoints')) { obj['teleopScalePoints'] = _ApiClient["default"].convertToType(data['teleopScalePoints'], 'Number'); } if (data.hasOwnProperty('teleopTowerCaptured')) { obj['teleopTowerCaptured'] = _ApiClient["default"].convertToType(data['teleopTowerCaptured'], 'Number'); } if (data.hasOwnProperty('towerFaceA')) { obj['towerFaceA'] = _ApiClient["default"].convertToType(data['towerFaceA'], 'String'); } if (data.hasOwnProperty('towerFaceB')) { obj['towerFaceB'] = _ApiClient["default"].convertToType(data['towerFaceB'], 'String'); } if (data.hasOwnProperty('towerFaceC')) { obj['towerFaceC'] = _ApiClient["default"].convertToType(data['towerFaceC'], 'String'); } if (data.hasOwnProperty('towerEndStrength')) { obj['towerEndStrength'] = _ApiClient["default"].convertToType(data['towerEndStrength'], 'Number'); } if (data.hasOwnProperty('techFoulCount')) { obj['techFoulCount'] = _ApiClient["default"].convertToType(data['techFoulCount'], 'Number'); } if (data.hasOwnProperty('foulCount')) { obj['foulCount'] = _ApiClient["default"].convertToType(data['foulCount'], 'Number'); } if (data.hasOwnProperty('position2')) { obj['position2'] = _ApiClient["default"].convertToType(data['position2'], 'String'); } if (data.hasOwnProperty('position3')) { obj['position3'] = _ApiClient["default"].convertToType(data['position3'], 'String'); } if (data.hasOwnProperty('position4')) { obj['position4'] = _ApiClient["default"].convertToType(data['position4'], 'String'); } if (data.hasOwnProperty('position5')) { obj['position5'] = _ApiClient["default"].convertToType(data['position5'], 'String'); } if (data.hasOwnProperty('position1crossings')) { obj['position1crossings'] = _ApiClient["default"].convertToType(data['position1crossings'], 'Number'); } if (data.hasOwnProperty('position2crossings')) { obj['position2crossings'] = _ApiClient["default"].convertToType(data['position2crossings'], 'Number'); } if (data.hasOwnProperty('position3crossings')) { obj['position3crossings'] = _ApiClient["default"].convertToType(data['position3crossings'], 'Number'); } if (data.hasOwnProperty('position4crossings')) { obj['position4crossings'] = _ApiClient["default"].convertToType(data['position4crossings'], 'Number'); } if (data.hasOwnProperty('position5crossings')) { obj['position5crossings'] = _ApiClient["default"].convertToType(data['position5crossings'], 'Number'); } } return obj; } }]); return MatchScoreBreakdown2016Alliance; }(); /** * @member {Number} autoPoints */ MatchScoreBreakdown2016Alliance.prototype['autoPoints'] = undefined; /** * @member {Number} teleopPoints */ MatchScoreBreakdown2016Alliance.prototype['teleopPoints'] = undefined; /** * @member {Number} breachPoints */ MatchScoreBreakdown2016Alliance.prototype['breachPoints'] = undefined; /** * @member {Number} foulPoints */ MatchScoreBreakdown2016Alliance.prototype['foulPoints'] = undefined; /** * @member {Number} capturePoints */ MatchScoreBreakdown2016Alliance.prototype['capturePoints'] = undefined; /** * @member {Number} adjustPoints */ MatchScoreBreakdown2016Alliance.prototype['adjustPoints'] = undefined; /** * @member {Number} totalPoints */ MatchScoreBreakdown2016Alliance.prototype['totalPoints'] = undefined; /** * @member {module:model/MatchScoreBreakdown2016Alliance.Robot1AutoEnum} robot1Auto */ MatchScoreBreakdown2016Alliance.prototype['robot1Auto'] = undefined; /** * @member {module:model/MatchScoreBreakdown2016Alliance.Robot2AutoEnum} robot2Auto */ MatchScoreBreakdown2016Alliance.prototype['robot2Auto'] = undefined; /** * @member {module:model/MatchScoreBreakdown2016Alliance.Robot3AutoEnum} robot3Auto */ MatchScoreBreakdown2016Alliance.prototype['robot3Auto'] = undefined; /** * @member {Number} autoReachPoints */ MatchScoreBreakdown2016Alliance.prototype['autoReachPoints'] = undefined; /** * @member {Number} autoCrossingPoints */ MatchScoreBreakdown2016Alliance.prototype['autoCrossingPoints'] = undefined; /** * @member {Number} autoBouldersLow */ MatchScoreBreakdown2016Alliance.prototype['autoBouldersLow'] = undefined; /** * @member {Number} autoBouldersHigh */ MatchScoreBreakdown2016Alliance.prototype['autoBouldersHigh'] = undefined; /** * @member {Number} autoBoulderPoints */ MatchScoreBreakdown2016Alliance.prototype['autoBoulderPoints'] = undefined; /** * @member {Number} teleopCrossingPoints */ MatchScoreBreakdown2016Alliance.prototype['teleopCrossingPoints'] = undefined; /** * @member {Number} teleopBouldersLow */ MatchScoreBreakdown2016Alliance.prototype['teleopBouldersLow'] = undefined; /** * @member {Number} teleopBouldersHigh */ MatchScoreBreakdown2016Alliance.prototype['teleopBouldersHigh'] = undefined; /** * @member {Number} teleopBoulderPoints */ MatchScoreBreakdown2016Alliance.prototype['teleopBoulderPoints'] = undefined; /** * @member {Boolean} teleopDefensesBreached */ MatchScoreBreakdown2016Alliance.prototype['teleopDefensesBreached'] = undefined; /** * @member {Number} teleopChallengePoints */ MatchScoreBreakdown2016Alliance.prototype['teleopChallengePoints'] = undefined; /** * @member {Number} teleopScalePoints */ MatchScoreBreakdown2016Alliance.prototype['teleopScalePoints'] = undefined; /** * @member {Number} teleopTowerCaptured */ MatchScoreBreakdown2016Alliance.prototype['teleopTowerCaptured'] = undefined; /** * @member {String} towerFaceA */ MatchScoreBreakdown2016Alliance.prototype['towerFaceA'] = undefined; /** * @member {String} towerFaceB */ MatchScoreBreakdown2016Alliance.prototype['towerFaceB'] = undefined; /** * @member {String} towerFaceC */ MatchScoreBreakdown2016Alliance.prototype['towerFaceC'] = undefined; /** * @member {Number} towerEndStrength */ MatchScoreBreakdown2016Alliance.prototype['towerEndStrength'] = undefined; /** * @member {Number} techFoulCount */ MatchScoreBreakdown2016Alliance.prototype['techFoulCount'] = undefined; /** * @member {Number} foulCount */ MatchScoreBreakdown2016Alliance.prototype['foulCount'] = undefined; /** * @member {String} position2 */ MatchScoreBreakdown2016Alliance.prototype['position2'] = undefined; /** * @member {String} position3 */ MatchScoreBreakdown2016Alliance.prototype['position3'] = undefined; /** * @member {String} position4 */ MatchScoreBreakdown2016Alliance.prototype['position4'] = undefined; /** * @member {String} position5 */ MatchScoreBreakdown2016Alliance.prototype['position5'] = undefined; /** * @member {Number} position1crossings */ MatchScoreBreakdown2016Alliance.prototype['position1crossings'] = undefined; /** * @member {Number} position2crossings */ MatchScoreBreakdown2016Alliance.prototype['position2crossings'] = undefined; /** * @member {Number} position3crossings */ MatchScoreBreakdown2016Alliance.prototype['position3crossings'] = undefined; /** * @member {Number} position4crossings */ MatchScoreBreakdown2016Alliance.prototype['position4crossings'] = undefined; /** * @member {Number} position5crossings */ MatchScoreBreakdown2016Alliance.prototype['position5crossings'] = undefined; /** * Allowed values for the <code>robot1Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2016Alliance['Robot1AutoEnum'] = { /** * value: "Crossed" * @const */ "Crossed": "Crossed", /** * value: "Reached" * @const */ "Reached": "Reached", /** * value: "None" * @const */ "None": "None" }; /** * Allowed values for the <code>robot2Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2016Alliance['Robot2AutoEnum'] = { /** * value: "Crossed" * @const */ "Crossed": "Crossed", /** * value: "Reached" * @const */ "Reached": "Reached", /** * value: "None" * @const */ "None": "None" }; /** * Allowed values for the <code>robot3Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2016Alliance['Robot3AutoEnum'] = { /** * value: "Crossed" * @const */ "Crossed": "Crossed", /** * value: "Reached" * @const */ "Reached": "Reached", /** * value: "None" * @const */ "None": "None" }; var _default = MatchScoreBreakdown2016Alliance; exports["default"] = _default;