UNPKG

cfb.js

Version:

This_is_an_API_for_accessing_all_sorts_of_college_football_data___Please_note_that_API_keys_should_be_supplied_with_Bearer__prepended__e_g__Bearer_your_key__API_keys_can_be_acquired_from_the_CollegeFootballData_com_website_

87 lines (76 loc) 2.57 kB
/* * College Football Data API * This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website. * * OpenAPI spec version: 4.3.2 * Contact: admin@collegefootballdata.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.24 * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.cfb) { root.cfb = {}; } root.cfb.TeamTalent = factory(root.cfb.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The TeamTalent model module. * @module model/TeamTalent * @version 4.3.2 */ /** * Constructs a new <code>TeamTalent</code>. * @alias module:model/TeamTalent * @class */ var exports = function() { }; /** * Constructs a <code>TeamTalent</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/TeamTalent} obj Optional instance to populate. * @return {module:model/TeamTalent} The populated <code>TeamTalent</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('year')) obj.year = ApiClient.convertToType(data['year'], 'Number'); if (data.hasOwnProperty('school')) obj.school = ApiClient.convertToType(data['school'], 'String'); if (data.hasOwnProperty('talent')) obj.talent = ApiClient.convertToType(data['talent'], 'Number'); } return obj; } /** * @member {Number} year */ exports.prototype.year = undefined; /** * @member {String} school */ exports.prototype.school = undefined; /** * @member {Number} talent */ exports.prototype.talent = undefined; return exports; }));