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_

94 lines (82 loc) 2.79 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.Coach = factory(root.cfb.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Coach model module. * @module model/Coach * @version 4.3.2 */ /** * Constructs a new <code>Coach</code>. * @alias module:model/Coach * @class */ var exports = function() { }; /** * Constructs a <code>Coach</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/Coach} obj Optional instance to populate. * @return {module:model/Coach} The populated <code>Coach</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('first_name')) obj.firstName = ApiClient.convertToType(data['first_name'], 'String'); if (data.hasOwnProperty('last_name')) obj.lastName = ApiClient.convertToType(data['last_name'], 'String'); if (data.hasOwnProperty('hire_date')) obj.hireDate = ApiClient.convertToType(data['hire_date'], 'String'); if (data.hasOwnProperty('seasons')) obj.seasons = ApiClient.convertToType(data['seasons'], [Object]); } return obj; } /** * @member {String} firstName */ exports.prototype.firstName = undefined; /** * @member {String} lastName */ exports.prototype.lastName = undefined; /** * @member {String} hireDate */ exports.prototype.hireDate = undefined; /** * @member {Array.<Object>} seasons */ exports.prototype.seasons = undefined; return exports; }));