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_

390 lines (352 loc) 14.3 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 MatchScoreBreakdown2017Alliance model module. * @module model/MatchScoreBreakdown2017Alliance * @version 3.8.0 */ var MatchScoreBreakdown2017Alliance = /*#__PURE__*/function () { /** * Constructs a new <code>MatchScoreBreakdown2017Alliance</code>. * @alias module:model/MatchScoreBreakdown2017Alliance */ function MatchScoreBreakdown2017Alliance() { _classCallCheck(this, MatchScoreBreakdown2017Alliance); MatchScoreBreakdown2017Alliance.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(MatchScoreBreakdown2017Alliance, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>MatchScoreBreakdown2017Alliance</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/MatchScoreBreakdown2017Alliance} obj Optional instance to populate. * @return {module:model/MatchScoreBreakdown2017Alliance} The populated <code>MatchScoreBreakdown2017Alliance</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new MatchScoreBreakdown2017Alliance(); 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('foulPoints')) { obj['foulPoints'] = _ApiClient["default"].convertToType(data['foulPoints'], '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('rotor1Auto')) { obj['rotor1Auto'] = _ApiClient["default"].convertToType(data['rotor1Auto'], 'Boolean'); } if (data.hasOwnProperty('rotor2Auto')) { obj['rotor2Auto'] = _ApiClient["default"].convertToType(data['rotor2Auto'], 'Boolean'); } if (data.hasOwnProperty('autoFuelLow')) { obj['autoFuelLow'] = _ApiClient["default"].convertToType(data['autoFuelLow'], 'Number'); } if (data.hasOwnProperty('autoFuelHigh')) { obj['autoFuelHigh'] = _ApiClient["default"].convertToType(data['autoFuelHigh'], 'Number'); } if (data.hasOwnProperty('autoMobilityPoints')) { obj['autoMobilityPoints'] = _ApiClient["default"].convertToType(data['autoMobilityPoints'], 'Number'); } if (data.hasOwnProperty('autoRotorPoints')) { obj['autoRotorPoints'] = _ApiClient["default"].convertToType(data['autoRotorPoints'], 'Number'); } if (data.hasOwnProperty('autoFuelPoints')) { obj['autoFuelPoints'] = _ApiClient["default"].convertToType(data['autoFuelPoints'], 'Number'); } if (data.hasOwnProperty('teleopFuelPoints')) { obj['teleopFuelPoints'] = _ApiClient["default"].convertToType(data['teleopFuelPoints'], 'Number'); } if (data.hasOwnProperty('teleopFuelLow')) { obj['teleopFuelLow'] = _ApiClient["default"].convertToType(data['teleopFuelLow'], 'Number'); } if (data.hasOwnProperty('teleopFuelHigh')) { obj['teleopFuelHigh'] = _ApiClient["default"].convertToType(data['teleopFuelHigh'], 'Number'); } if (data.hasOwnProperty('teleopRotorPoints')) { obj['teleopRotorPoints'] = _ApiClient["default"].convertToType(data['teleopRotorPoints'], 'Number'); } if (data.hasOwnProperty('kPaRankingPointAchieved')) { obj['kPaRankingPointAchieved'] = _ApiClient["default"].convertToType(data['kPaRankingPointAchieved'], 'Boolean'); } if (data.hasOwnProperty('teleopTakeoffPoints')) { obj['teleopTakeoffPoints'] = _ApiClient["default"].convertToType(data['teleopTakeoffPoints'], 'Number'); } if (data.hasOwnProperty('kPaBonusPoints')) { obj['kPaBonusPoints'] = _ApiClient["default"].convertToType(data['kPaBonusPoints'], 'Number'); } if (data.hasOwnProperty('rotorBonusPoints')) { obj['rotorBonusPoints'] = _ApiClient["default"].convertToType(data['rotorBonusPoints'], 'Number'); } if (data.hasOwnProperty('rotor1Engaged')) { obj['rotor1Engaged'] = _ApiClient["default"].convertToType(data['rotor1Engaged'], 'Boolean'); } if (data.hasOwnProperty('rotor2Engaged')) { obj['rotor2Engaged'] = _ApiClient["default"].convertToType(data['rotor2Engaged'], 'Boolean'); } if (data.hasOwnProperty('rotor3Engaged')) { obj['rotor3Engaged'] = _ApiClient["default"].convertToType(data['rotor3Engaged'], 'Boolean'); } if (data.hasOwnProperty('rotor4Engaged')) { obj['rotor4Engaged'] = _ApiClient["default"].convertToType(data['rotor4Engaged'], 'Boolean'); } if (data.hasOwnProperty('rotorRankingPointAchieved')) { obj['rotorRankingPointAchieved'] = _ApiClient["default"].convertToType(data['rotorRankingPointAchieved'], 'Boolean'); } 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('touchpadNear')) { obj['touchpadNear'] = _ApiClient["default"].convertToType(data['touchpadNear'], 'String'); } if (data.hasOwnProperty('touchpadMiddle')) { obj['touchpadMiddle'] = _ApiClient["default"].convertToType(data['touchpadMiddle'], 'String'); } if (data.hasOwnProperty('touchpadFar')) { obj['touchpadFar'] = _ApiClient["default"].convertToType(data['touchpadFar'], 'String'); } } return obj; } }]); return MatchScoreBreakdown2017Alliance; }(); /** * @member {Number} autoPoints */ MatchScoreBreakdown2017Alliance.prototype['autoPoints'] = undefined; /** * @member {Number} teleopPoints */ MatchScoreBreakdown2017Alliance.prototype['teleopPoints'] = undefined; /** * @member {Number} foulPoints */ MatchScoreBreakdown2017Alliance.prototype['foulPoints'] = undefined; /** * @member {Number} adjustPoints */ MatchScoreBreakdown2017Alliance.prototype['adjustPoints'] = undefined; /** * @member {Number} totalPoints */ MatchScoreBreakdown2017Alliance.prototype['totalPoints'] = undefined; /** * @member {module:model/MatchScoreBreakdown2017Alliance.Robot1AutoEnum} robot1Auto */ MatchScoreBreakdown2017Alliance.prototype['robot1Auto'] = undefined; /** * @member {module:model/MatchScoreBreakdown2017Alliance.Robot2AutoEnum} robot2Auto */ MatchScoreBreakdown2017Alliance.prototype['robot2Auto'] = undefined; /** * @member {module:model/MatchScoreBreakdown2017Alliance.Robot3AutoEnum} robot3Auto */ MatchScoreBreakdown2017Alliance.prototype['robot3Auto'] = undefined; /** * @member {Boolean} rotor1Auto */ MatchScoreBreakdown2017Alliance.prototype['rotor1Auto'] = undefined; /** * @member {Boolean} rotor2Auto */ MatchScoreBreakdown2017Alliance.prototype['rotor2Auto'] = undefined; /** * @member {Number} autoFuelLow */ MatchScoreBreakdown2017Alliance.prototype['autoFuelLow'] = undefined; /** * @member {Number} autoFuelHigh */ MatchScoreBreakdown2017Alliance.prototype['autoFuelHigh'] = undefined; /** * @member {Number} autoMobilityPoints */ MatchScoreBreakdown2017Alliance.prototype['autoMobilityPoints'] = undefined; /** * @member {Number} autoRotorPoints */ MatchScoreBreakdown2017Alliance.prototype['autoRotorPoints'] = undefined; /** * @member {Number} autoFuelPoints */ MatchScoreBreakdown2017Alliance.prototype['autoFuelPoints'] = undefined; /** * @member {Number} teleopFuelPoints */ MatchScoreBreakdown2017Alliance.prototype['teleopFuelPoints'] = undefined; /** * @member {Number} teleopFuelLow */ MatchScoreBreakdown2017Alliance.prototype['teleopFuelLow'] = undefined; /** * @member {Number} teleopFuelHigh */ MatchScoreBreakdown2017Alliance.prototype['teleopFuelHigh'] = undefined; /** * @member {Number} teleopRotorPoints */ MatchScoreBreakdown2017Alliance.prototype['teleopRotorPoints'] = undefined; /** * @member {Boolean} kPaRankingPointAchieved */ MatchScoreBreakdown2017Alliance.prototype['kPaRankingPointAchieved'] = undefined; /** * @member {Number} teleopTakeoffPoints */ MatchScoreBreakdown2017Alliance.prototype['teleopTakeoffPoints'] = undefined; /** * @member {Number} kPaBonusPoints */ MatchScoreBreakdown2017Alliance.prototype['kPaBonusPoints'] = undefined; /** * @member {Number} rotorBonusPoints */ MatchScoreBreakdown2017Alliance.prototype['rotorBonusPoints'] = undefined; /** * @member {Boolean} rotor1Engaged */ MatchScoreBreakdown2017Alliance.prototype['rotor1Engaged'] = undefined; /** * @member {Boolean} rotor2Engaged */ MatchScoreBreakdown2017Alliance.prototype['rotor2Engaged'] = undefined; /** * @member {Boolean} rotor3Engaged */ MatchScoreBreakdown2017Alliance.prototype['rotor3Engaged'] = undefined; /** * @member {Boolean} rotor4Engaged */ MatchScoreBreakdown2017Alliance.prototype['rotor4Engaged'] = undefined; /** * @member {Boolean} rotorRankingPointAchieved */ MatchScoreBreakdown2017Alliance.prototype['rotorRankingPointAchieved'] = undefined; /** * @member {Number} techFoulCount */ MatchScoreBreakdown2017Alliance.prototype['techFoulCount'] = undefined; /** * @member {Number} foulCount */ MatchScoreBreakdown2017Alliance.prototype['foulCount'] = undefined; /** * @member {String} touchpadNear */ MatchScoreBreakdown2017Alliance.prototype['touchpadNear'] = undefined; /** * @member {String} touchpadMiddle */ MatchScoreBreakdown2017Alliance.prototype['touchpadMiddle'] = undefined; /** * @member {String} touchpadFar */ MatchScoreBreakdown2017Alliance.prototype['touchpadFar'] = undefined; /** * Allowed values for the <code>robot1Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2017Alliance['Robot1AutoEnum'] = { /** * value: "Unknown" * @const */ "Unknown": "Unknown", /** * value: "Mobility" * @const */ "Mobility": "Mobility", /** * value: "None" * @const */ "None": "None" }; /** * Allowed values for the <code>robot2Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2017Alliance['Robot2AutoEnum'] = { /** * value: "Unknown" * @const */ "Unknown": "Unknown", /** * value: "Mobility" * @const */ "Mobility": "Mobility", /** * value: "None" * @const */ "None": "None" }; /** * Allowed values for the <code>robot3Auto</code> property. * @enum {String} * @readonly */ MatchScoreBreakdown2017Alliance['Robot3AutoEnum'] = { /** * value: "Unknown" * @const */ "Unknown": "Unknown", /** * value: "Mobility" * @const */ "Mobility": "Mobility", /** * value: "None" * @const */ "None": "None" }; var _default = MatchScoreBreakdown2017Alliance; exports["default"] = _default;