Bike

data class Bike(val bikeId: String, val lat: Double, val lon: Double, val isReserved: IntBoolean, val isDisabled: IntBoolean, val rentalUris: RentalUris? = null)(source)

Represents a vehicle that is currently not part of an active rental.

Constructors

Link copied to clipboard
constructor(bikeId: String, lat: Double, lon: Double, isReserved: IntBoolean, isDisabled: IntBoolean, rentalUris: RentalUris? = null)

Properties

Link copied to clipboard
@SerialName(value = "bike_id")
val bikeId: String

Identifier of a vehicle.

Link copied to clipboard
@SerialName(value = "is_disabled")
val isDisabled: IntBoolean

Is the vehicle currently disabled?

Link copied to clipboard
@SerialName(value = "is_reserved")
val isReserved: IntBoolean

Is the vehicle currently reserved?

Link copied to clipboard
val lat: Double

Latitude of the vehicle in decimal degrees.

Link copied to clipboard
val lon: Double

Longitude of the vehicle in decimal degrees.

Link copied to clipboard
@SerialName(value = "rental_uris")
val rentalUris: RentalUris?

JSON object that contains rental URIs for Android, iOS, and web in the android, ios, and web fields.