Home Reference Source
public class | source

Park

Extends:

events~EventEmitterConfigBaseEntity → Park

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
This data contains all the calendar data of a specific Park

public

async getData(): string

Get All Data of a specific park
This data contains all park's data, which is fetched earlier

public

async getFairytale(): string

Get All Fairytales of park
This data contains all the fairytales.

public

async getHalloween(): string

Get All Halloween of a themepark
This data contains all the merchandise.

public

Get All Merchandise of a themepark
This data contains all the merchandise.

public

Get All Data of a park
This data contains all the Data in park

public

Get All Restaurants of a park
This data contains all the restaurants.

public

async getRide(ride: *): string

public

async getRides(): string

Get All Rides of a park
This data contains all the rides.

public

async getService(): string

Get All Services of park
This data contains all the EP park.

public

async getShows(): string

Get All Shows of a park
This data contains all the rides.

public

async getStatic(): string

Get All Statics of a park
This data contains all the static.

public

Get All Queues of a park
This data contains all the Queues in 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

Get entity's human-friendly language string

public get

Get entity's human-friendly location string

public get

Name: string: *

Get entity's human-friendly name string

public get

Now: string: *

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

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#constructor

Params:

NameTypeAttributeDescription
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

Return:

string

All PARK calendar data

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

Return:

string

All PARK data(hours, queuetimes)

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.

Return:

string

park fairytale pois

public async getHalloween(): string source

Get All Halloween of a themepark
This data contains all the merchandise.

Return:

string

park halloween pois

public async getMerchandise(): string source

Get All Merchandise of a themepark
This data contains all the merchandise.

Return:

string

park mcerchandise pois

public getPark(): string source

Get All Data of a park
This data contains all the Data in park

Return:

string

All PARK data

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.

Return:

string

park restaurants

public async getRide(ride: *): string source

Params:

NameTypeAttributeDescription
ride *

Return:

string

ride data for a specific ride

public async getRides(): string source

Get All Rides of a park
This data contains all the rides.

Return:

string

park rides

public async getService(): string source

Get All Services of park
This data contains all the EP park.

Return:

string

park services pois

public async getShows(): string source

Get All Shows of a park
This data contains all the rides.

Return:

string

park rides

public async getStatic(): string source

Get All Statics of a park
This data contains all the static.

Return:

string

park static pois

public getWaitTime(): string source

Get All Queues of a park
This data contains all the Queues in park

Return:

string

All PARK queuetimes

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.PARKNAME();

park.getWaitTime().then((ridetimes) => {
console.log(ridetimes)
});

public async getWaitTimes(): string source

Get all queues of a park

Return:

string

park queues