public class TripManager extends Object
Trip
s.SavedTrip
,
CalendarTrip
,
LearnedTrip
Modifier and Type | Class and Description |
---|---|
static class |
TripManager.DeleteTripOptions
Contains options to delete saved trips.
|
static class |
TripManager.GetTripsOptions
Contains options to get saved trips.
|
static interface |
TripManager.IDeleteTripResponseListener
Response listener for deleteTrip.
|
static interface |
TripManager.IGetTripsResponseListener
Response listener for getTrips.
|
static interface |
TripManager.ISaveTripResponseListener
Response listener for saveTrip.
|
static interface |
TripManager.IUpdateLearnedTripsResponseListener
Response listener for updateLearnedTrips.
|
static interface |
TripManager.IUpdateNotificationResponseListener
Response listener for updatePreDriveNotification.
|
static class |
TripManager.SaveTripOptions
Contains options to save trips.
|
static class |
TripManager.TripManagerException
An exception that is thrown when there is an error with a
TripManager operation. |
static class |
TripManager.UpdateLearnedTripsOptions
Contains options to update
LearnedTrip s. |
static class |
TripManager.UpdateNotificationOptions
Contains options to update a pre-drive notification for a specific
CalendarTrip . |
Modifier and Type | Method and Description |
---|---|
ICancellable |
deleteTrip(TripManager.DeleteTripOptions options,
TripManager.IDeleteTripResponseListener listener)
Delete a
SavedTrip . |
ICancellable |
getTrips(TripManager.GetTripsOptions options,
TripManager.IGetTripsResponseListener listener)
Get the
SavedTrip s that have been saved for the user. |
ICancellable |
saveTrip(TripManager.SaveTripOptions options,
TripManager.ISaveTripResponseListener listener)
Save a
SavedTrip . |
ICancellable |
updateLearnedTrips(TripManager.UpdateLearnedTripsOptions options,
TripManager.IUpdateLearnedTripsResponseListener listener)
Update the user's
LearnedTrip s. |
ICancellable |
updatePreDriveNotification(TripManager.UpdateNotificationOptions options,
TripManager.IUpdateNotificationResponseListener listener)
Update pre-drive notifications for a
CalendarTrip . |
public ICancellable saveTrip(TripManager.SaveTripOptions options, TripManager.ISaveTripResponseListener listener)
SavedTrip
. This method will create and persist the trip if it does not exist,
or persist the trip with changes if it already exists.options
- saveTrip request options, such as the trip to be savedlistener
- listener that will receive the responseICancellable
so that the request can be cancelledTripManager.TripManagerException
- when either options
or listener
is null
or invalid.public ICancellable deleteTrip(TripManager.DeleteTripOptions options, TripManager.IDeleteTripResponseListener listener)
SavedTrip
. This method will delete the trip if it has been previously saved
using #saveTrip.options
- deleteTrip request options, such as the trip to be deletedlistener
- listener that will receive the responseICancellable
so that the request can be cancelledTripManager.TripManagerException
- when either options
or listener
is null
or invalidpublic ICancellable getTrips(TripManager.GetTripsOptions options, TripManager.IGetTripsResponseListener listener)
SavedTrip
s that have been saved for the user.options
- options to get trips, parameter is unused and must be null
listener
- listener that will receive the responseICancellable
so that the request can be cancelledTripManager.TripManagerException
- when listener
is null
or invalidpublic ICancellable updatePreDriveNotification(TripManager.UpdateNotificationOptions options, TripManager.IUpdateNotificationResponseListener listener)
CalendarTrip
.options
- options to update notification.listener
- listener that will receive the response.ICancellable
so that the request can be cancelled.TripManager.TripManagerException
- when either options
or listener
is null
or invalid.public ICancellable updateLearnedTrips(TripManager.UpdateLearnedTripsOptions options, TripManager.IUpdateLearnedTripsResponseListener listener)
LearnedTrip
s.options
- Request options.listener
- Response listener instance.ICancellable
to cancel the request in progress.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.