Class: Player

Player

Represents an NFL player. This model is not directly associated with any fantasy team.

new Player ()

Extends

Members

displayName String inherited overrides

The class name. Minification will break this.constructor.name; this allows for readable logging even in minified code.

responseMap PlayerMap

Methods

Player.getIDParams (params)object | undefined static

Returns valid id params when 'id' and 'seasonId' are passed.

Name Type Description
params object

The params to use.

Returns:
Type Description
object | undefined An object containing the params, or undefined.

getCacheId ()String | undefined inherited overrides

Returns the id used for caching. Important for classes that have multiple identifiers. Example: League is identified by its leagueId and its seasonId. This method prevents separate seasons from overriding each other's data.

Returns:
Type Description
String | undefined

getIDParams ()Object inherited overrides

Returns an object containing all IDs used for API requests and caching for the instance.

Returns:
Type Description
Object