public class ItineraryManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteItinerary(android.app.Activity context,
Itinerary itinerary,
Consumer<java.lang.Boolean> callback)
Delete an itinerary from the server.
|
static void |
requestItinerary(android.app.Activity context,
java.util.Map<java.lang.String,java.lang.Object> parameters,
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener,
AsyncDatabaseConnector.OnEndConnectionListener<Itinerary> callback)
Request itinerary.
|
static void |
updateItinerary(android.app.Activity context,
Itinerary itinerary,
Consumer<java.lang.Boolean> callback)
Update an itinerary with new information
|
static Itinerary |
uploadItinerary(java.lang.String title,
java.lang.String description,
java.lang.String beginDate,
java.lang.String endDate,
java.lang.String endReservationDate,
java.lang.String location,
java.lang.String duration,
int repetitions,
int minParticipants,
int maxParticipants,
float fullPrice,
float reducedPrice,
java.util.Set<Language> languages,
java.lang.String imageUrl,
BooleanConnector.OnEndConnectionListener callback)
Create and upload a new itinerary to the server.
|
public static Itinerary uploadItinerary(java.lang.String title, java.lang.String description, java.lang.String beginDate, java.lang.String endDate, java.lang.String endReservationDate, java.lang.String location, java.lang.String duration, int repetitions, int minParticipants, int maxParticipants, float fullPrice, float reducedPrice, @NonNull java.util.Set<Language> languages, java.lang.String imageUrl, @Nullable BooleanConnector.OnEndConnectionListener callback)
title - The title of the new itinerary.description - The description of the itinerary.beginDate - The beginning date of the itinerary (format "yyyy-MM-dd").endDate - The ending date of the itinerary (format "yyyy-MM-dd").endReservationDate - The reservation's ending date of the itinerary (format
"yyyy-MM-dd").location - The location of the itinerary.duration - The duration of the itinerary.repetitions - The number of repetitions per day if the itinerary.minParticipants - The minimum number of participants.maxParticipants - The maximum number of participants.fullPrice - The full price of the itinerary.reducedPrice - The reduced price of the itinerary.imageUrl - The URL of the image of the itinerary.callback - A callback to be executed after the operation is completed.public static void deleteItinerary(android.app.Activity context,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the activityitinerary - The code of the itinerary to delete.callback - A callback to be executed after the operation is completed.public static void updateItinerary(android.app.Activity context,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the activity.itinerary - The itinerary to updatecallback - A callback to be executed after the operation is completed.public static void requestItinerary(android.app.Activity context,
java.util.Map<java.lang.String,java.lang.Object> parameters,
@Nullable
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener,
@Nullable
AsyncDatabaseConnector.OnEndConnectionListener<Itinerary> callback)
context - The context of the caller.parameters - The parameters of the request.onStartConnectionListener - On start connection callback.callback - A callback to be executed after the operation is completed.