# new ApexObj(seasonsData)
Creates the base object for the module. Throws an error if no data is provided.
Parameters:
Name | Type | Description |
---|---|---|
seasonsData |
object
|
data parsed from |
Members
Array.<ScheduledPlaylistItem>
# readonly nullable currentLTMs
Returns an array of the currently-running limited time modes for the current season, or null if none found.
Array.<ScheduledPlaylistItem>
# readonly nullable currentMaps
Returns an array of current maps (PlaylistItems), or null if not called during a season or if no maps are found.
Array.<Playlist>
# readonly nullable currentTakeovers
Returns an array of the current limited time modes which replace 'standard' modes, or null if none found.
Array.<ScheduledPlaylistItem>
# readonly nullable nextMaps
Returns an array of the upcoming maps (as ScheduledPlaylistItems)
or null
if none found.
Methods
# getMapsByDate(dateopt)
Returns an array of the current maps (ScheduledPlaylistItems) for the given date, or null if none found. Uses the current date if none provided.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
date |
parseableDate
|
<optional> |
new Date() |
# getSeasonByDate(dateopt) → (nullable) {Season}
Returns the season for the given date, or null if none found. Uses the current date if none provided.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
date |
parseableDate
|
<optional> |
new Date() | the date to query |