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_

166 lines (159 loc) 5.93 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 Webcast model module. * @module model/Webcast * @version 3.8.0 */ var Webcast = /*#__PURE__*/function () { /** * Constructs a new <code>Webcast</code>. * @alias module:model/Webcast * @param type {module:model/Webcast.TypeEnum} Type of webcast, typically descriptive of the streaming provider. * @param channel {String} Type specific channel information. May be the YouTube stream, or Twitch channel name. In the case of iframe types, contains HTML to embed the stream in an HTML iframe. */ function Webcast(type, channel) { _classCallCheck(this, Webcast); Webcast.initialize(this, type, channel); } /** * 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(Webcast, null, [{ key: "initialize", value: function initialize(obj, type, channel) { obj['type'] = type; obj['channel'] = channel; } /** * Constructs a <code>Webcast</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/Webcast} obj Optional instance to populate. * @return {module:model/Webcast} The populated <code>Webcast</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new Webcast(); if (data.hasOwnProperty('type')) { obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } if (data.hasOwnProperty('channel')) { obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String'); } if (data.hasOwnProperty('date')) { obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String'); } if (data.hasOwnProperty('file')) { obj['file'] = _ApiClient["default"].convertToType(data['file'], 'String'); } } return obj; } }]); return Webcast; }(); /** * Type of webcast, typically descriptive of the streaming provider. * @member {module:model/Webcast.TypeEnum} type */ Webcast.prototype['type'] = undefined; /** * Type specific channel information. May be the YouTube stream, or Twitch channel name. In the case of iframe types, contains HTML to embed the stream in an HTML iframe. * @member {String} channel */ Webcast.prototype['channel'] = undefined; /** * The date for the webcast in `yyyy-mm-dd` format. May be null. * @member {String} date */ Webcast.prototype['date'] = undefined; /** * File identification as may be required for some types. May be null. * @member {String} file */ Webcast.prototype['file'] = undefined; /** * Allowed values for the <code>type</code> property. * @enum {String} * @readonly */ Webcast['TypeEnum'] = { /** * value: "youtube" * @const */ "youtube": "youtube", /** * value: "twitch" * @const */ "twitch": "twitch", /** * value: "ustream" * @const */ "ustream": "ustream", /** * value: "iframe" * @const */ "iframe": "iframe", /** * value: "html5" * @const */ "html5": "html5", /** * value: "rtmp" * @const */ "rtmp": "rtmp", /** * value: "livestream" * @const */ "livestream": "livestream", /** * value: "direct_link" * @const */ "direct_link": "direct_link", /** * value: "mms" * @const */ "mms": "mms", /** * value: "justin" * @const */ "justin": "justin", /** * value: "stemtv" * @const */ "stemtv": "stemtv", /** * value: "dacast" * @const */ "dacast": "dacast" }; var _default = Webcast; exports["default"] = _default;