public class WishlistManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addToWishlist(android.app.Activity context,
Itinerary itinerary,
BooleanConnector.OnEndConnectionListener callback)
Add an itinerary to a user's wishlist on the server.
|
static void |
clearWishlist(android.app.Activity context,
BooleanConnector.OnEndConnectionListener callback)
Clear a user's wishlist on the server.
|
static void |
getWishlist(android.app.Activity context,
AsyncDatabaseConnector.OnStartConnectionListener onStartCallback,
AsyncDatabaseConnector.OnEndConnectionListener<Wishlist> onEndCallback)
Get a user's wishlist from the server.
|
static void |
isInWishlist(android.app.Activity context,
Itinerary itinerary,
Consumer<java.lang.Boolean> callback)
Check if an itinerary is present in a user's wishlist on the server.
|
static void |
removeFromWishlist(android.app.Activity context,
Itinerary itinerary,
BooleanConnector.OnEndConnectionListener callback)
Remove an itinerary from a user's wishlist on the server.
|
public static void getWishlist(android.app.Activity context,
@Nullable
AsyncDatabaseConnector.OnStartConnectionListener onStartCallback,
@Nullable
AsyncDatabaseConnector.OnEndConnectionListener<Wishlist> onEndCallback)
context - The activity context.onStartCallback - A function to be executed before the request.onEndCallback - A function to be executed after the request.public static void clearWishlist(android.app.Activity context,
@Nullable
BooleanConnector.OnEndConnectionListener callback)
context - The activity context.callback - A function to be executed after the clear attempt.public static void removeFromWishlist(android.app.Activity context,
Itinerary itinerary,
@Nullable
BooleanConnector.OnEndConnectionListener callback)
context - The activity context.itinerary - The itinerary.callback - A function to be executed after the remove attempt.public static void addToWishlist(android.app.Activity context,
Itinerary itinerary,
@Nullable
BooleanConnector.OnEndConnectionListener callback)
context - The activity context.itinerary - The itinerary.callback - A function to be executed after the insert attempt.public static void isInWishlist(android.app.Activity context,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.itinerary - The itinerary.callback - A function to be executed after the request attempt.