Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocationTypeService

Location type services.

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly dbm

dbm: default

Methods

getLocationName

  • getLocationName(locationID: number): Promise<string>
  • Get the name of a location by ID.

    Parameters

    • locationID: number

      A location's ID.

    Returns Promise<string>

    The location's name.

getLocations

  • Get all locations.

    Returns Promise<LocationType[]>

    All location types.

validLocation

  • validLocation(locationID: number): Promise<boolean>
  • Check if a location is valid.

    Parameters

    • locationID: number

      A location's ID.

    Returns Promise<boolean>

    Whether or not the location is valid.

Generated using TypeDoc