TripClient

class TripClient(val client: HttpClient)

Client to access trip related functionalities

Constructors

Link copied to clipboard
fun TripClient(client: HttpClient)

Functions

Link copied to clipboard
fun create(trip: Trip)

Creates a new trip

Link copied to clipboard
fun delete(tripId: String)

Deletes the trip using its Id

Link copied to clipboard
fun get(tripId: String): Trip

Gets a trip using its Id

Link copied to clipboard
fun getBlobs(tripId: String): List<Pair<Blob, Device>>

Gets the blobs and the device that gathered it for a specified trip

Link copied to clipboard
fun getEvents(tripId: String): List<Event>

Gets the events for a specified trip

Link copied to clipboard
fun getSeveral(    sortBy: String = "startTime",     sortDesc: Boolean = false,     limit: Int? = null,     offset: Int? = null,     searchQuery: String? = null): PagedData<Trip>

Gets several trips based on the provided criteria

Properties

Link copied to clipboard
val client: HttpClient

Ktor HttpClient used to make HTTP requests