Park
Extends:
Direct Subclass:
Indirect Subclass:
Base Park Object
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Create a new Park object |
Member Summary
Public Members | ||
public |
cache: * Create a new cache object for this park, so we can reuse pois instead of refetch them every time. |
Method Summary
Public Methods | ||
public |
Get All Calendar Data of a specific park |
|
public |
Get All Data of a specific park |
|
public |
async getFairytale(): string Get All Fairytales of park |
|
public |
async getHalloween(): string Get All Halloween of a themepark |
|
public |
async getMerchandise(): string Get All Merchandise of a themepark |
|
public |
Get All Data of a park |
|
public |
async getRestaurant(): string Get All Restaurants of a park |
|
public |
|
|
public |
Get All Rides of a park |
|
public |
async getService(): string Get All Services of park |
|
public |
Get All Shows of a park |
|
public |
Get All Statics of a park |
|
public |
Get All Queues of a park |
|
public |
async getWaitTimes(): string Get all queues of a park |
Inherited Summary
From class ConfigBase | ||
public |
config: * Parse the config of a specific park as object |
From class Entity | ||
public get |
Get entity's human-friendly fastpass support string |
|
public get |
Get entity's human-friendly FastPassReturnTimes support string |
|
public get |
LangOptions: string: * Get entity's human-friendly language string |
|
public get |
Get entity's human-friendly location string |
|
public get |
Get entity's human-friendly name string |
|
public get |
Get entity's human-friendly moment now string |
|
public get |
Get entity's human-friendly openingtimes support string |
|
public get |
Get entity's human-friendly ride openingtimes support string |
|
public get |
Get entity's human-friendly waittimes support string |
|
public get |
Get entity's human-friendly timezone string |
|
public |
getTimeNow(): string Return the current time for this entity in its local timezone |
|
public |
getTimeNowMoment(): moment Return the current time for this entity in its local timezone |
|
public |
Get a globally unique ID for this entity |
|
public |
log(args: ...any) Debug log |
Public Constructors
public constructor(options: Object) source
Create a new Park object
Override:
Entity#constructorParams:
Name | Type | Attribute | Description |
options | Object |
Public Members
public cache: * source
Create a new cache object for this park, so we can reuse pois instead of refetch them every time.
Public Methods
public getCalendar(): string source
Get All Calendar Data of a specific park
This data contains all the calendar data of a specific Park
Example:
import tpapi from '@alexvv13/tpapi';
const park = new tpapi.park.PARKNAME();
park.getCalendar().then((hours) => {
console.log(hours)
});
public async getData(): string source
Get All Data of a specific park
This data contains all park's data, which is fetched earlier
Example:
import tpapi from '@alexvv13/tpapi';
const park = new tpapi.park.PARKNAME();
park.getData().then((data) => {
console.log(data)
});
public async getFairytale(): string source
Get All Fairytales of park
This data contains all the fairytales.
public async getHalloween(): string source
Get All Halloween of a themepark
This data contains all the merchandise.
public async getMerchandise(): string source
Get All Merchandise of a themepark
This data contains all the merchandise.
public getPark(): string source
Get All Data of a park
This data contains all the Data in park
Example:
import tpapi from '@alexvv13/tpapi';
const park = new tpapi.park.PARKNAME();
park.getPark().then((park) => {
console.log(park)
});
public async getRestaurant(): string source
Get All Restaurants of a park
This data contains all the restaurants.
public async getService(): string source
Get All Services of park
This data contains all the EP park.