app / sg.edu.ntu.scse.cz2006.gymbuddies.datastruct / CarparkAvailability

CarparkAvailability

data class CarparkAvailability

Data Structure object to hold the Gson object for the LTA Carpark Availability API for sg.edu.ntu.scse.cz2006.gymbuddies.datastruct in Gym Buddies!

Author
Kenneth Soh

Since
2019-10-22

Constructors

<init>

CarparkAvailability(CarParkID: String = "", Area: String = "", Development: String = "Nanyang Technological University Singapore", Location: String = "1.3462 103.6820", AvailableLots: Int = 0, LotType: String = TYPE_CAR, Agency: String = AGENCY_HDB)

Properties

Agency

String Agency managing the carpark. Can be of AGENCY_HDB, AGENCY_LTA or AGENCY_URA

val Agency: String

Area

String Carpark Area (E.g Marina), only used for LTA carparks

val Area: String

AvailableLots

Int Number of available lots in the carpark at the point in time

val AvailableLots: Int

CarParkID

String Carpark UID

val CarParkID: String

Development

String Carpark Address

val Development: String

Location

String Coordinates of carpark

val Location: String

LotType

String Type of lot. Can be of TYPE_CAR, TYPE_HEAVY_VEH or TYPE_MOTOCYCLE

val LotType: String

Companion Object Properties

AGENCY_HDB

Carpark is managed by Housing Development Board Singapore (HDB)

const val AGENCY_HDB: String

AGENCY_LTA

Carpark is managed by the Land Transport Authroity Singapore (LTA)

const val AGENCY_LTA: String

AGENCY_URA

Carpark is managed by the Urban Redevelopment Authority Singapore (URA)

const val AGENCY_URA: String

TYPE_CAR

Carpark is meant for cars

const val TYPE_CAR: String

TYPE_HEAVY_VEH

Carpark is meant for heavy vehicles

const val TYPE_HEAVY_VEH: String

TYPE_MOTOCYCLE

Carpark is meant for motocycles

const val TYPE_MOTOCYCLE: String