DisneyLiveResort

DisneyLiveResort

A Resort class for a Disney live resort (WDW, DLR, HKDR)

Constructor

new DisneyLiveResort()

Source:

Classes

DisneyLiveResort

Methods

(async) _buildLiveDataObject(doc)

Description:
  • Given a status doc, build a live data object
Source:
Parameters:
Name Type Description
doc object

(async, private) _fetchRestaurantMenu(id)

Description:
  • Fetch restaurant menu JSON
Source:
Parameters:
Name Type Description
id string

(async) _getSchedulesForDate(ids, date) → {array.<object>}

Source:
Parameters:
Name Type Description
ids array.<string> document IDs to get schedules for
date moment Moment date to get schedule data for
Returns:
Array of objects containing _id and schedule
Type
array.<object>

(async) _init()

Description:
  • Initialise our Disney resort class
Source:

(async) buildAttractionEntities()

Source:

buildBaseEntityObject(doc) → {object}

Description:
  • Given a basic document build a generic entity doc. This should include all fields that are in any entity type.
Source:
Parameters:
Name Type Description
doc object
Returns:
Type
object

(async) buildDestinationEntity()

Description:
  • Return entity document for this destination
Source:

(async) buildEntityLiveData()

Description:
  • Return all current live entity data
Source:

(async) buildEntityScheduleData()

Source:

(async) buildParkEntities()

Description:
  • Return all park entities for this resort
Source:

(async) buildRestaurantEntities()

Source:

(async) buildShowEntities()

Source:

(async, private) fetchVirtualQueueData()

Source:

getFacilityStatusChannelID() → {string}

Description:
  • Get the channel ID for the facility status live update documents
Source:
Returns:
Type
string

(async) getRestaurantMenu(id)

Description:
  • Get the menu for a given resturant entity ID
Source:
Parameters:
Name Type Description
id string

(async) initLiveStatusUpdates()

Description:
  • Setup our live status update subscriptions
Source:

sanitizeEntityName(name) → {string}

Description:
  • Given a name for an entity, clean up any strings we don't want
Source:
Parameters:
Name Type Description
name string
Returns:
Type
string