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_
94 lines (82 loc) • 2.79 kB
JavaScript
/*
* 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.TeamEloRating = factory(root.cfb.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The TeamEloRating model module.
* @module model/TeamEloRating
* @version 4.3.2
*/
/**
* Constructs a new <code>TeamEloRating</code>.
* @alias module:model/TeamEloRating
* @class
*/
var exports = function() {
};
/**
* Constructs a <code>TeamEloRating</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/TeamEloRating} obj Optional instance to populate.
* @return {module:model/TeamEloRating} The populated <code>TeamEloRating</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('team'))
obj.team = ApiClient.convertToType(data['team'], 'String');
if (data.hasOwnProperty('conference'))
obj.conference = ApiClient.convertToType(data['conference'], 'String');
if (data.hasOwnProperty('elo'))
obj.elo = ApiClient.convertToType(data['elo'], 'Number');
}
return obj;
}
/**
* @member {Number} year
*/
exports.prototype.year = undefined;
/**
* @member {String} team
*/
exports.prototype.team = undefined;
/**
* @member {String} conference
*/
exports.prototype.conference = undefined;
/**
* @member {Number} elo
*/
exports.prototype.elo = undefined;
return exports;
}));