public class ReviewManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
Consumer<java.lang.Boolean> callback)
Insert itinerary's review.
|
static void |
addReviewUser(android.app.Activity context,
UserReview userReview,
Consumer<java.lang.Boolean> callback)
Insert user's review.
|
static void |
deleteReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
Consumer<java.lang.Boolean> callback)
Delete itinerary's review.
|
static void |
deleteReviewUser(android.app.Activity context,
UserReview userReview,
Consumer<java.lang.Boolean> callback)
Delete user's review.
|
static void |
getAvgItineraryFeedback(android.app.Activity context,
Itinerary itinerary,
Consumer<java.lang.Float> callback)
Set the feedback's average of the itinerary.
|
static void |
getAvgUserFeedback(android.app.Activity context,
User user,
Consumer<java.lang.Float> callback)
Set the feedback's average of the user.
|
static void |
isReviewedItinerary(android.app.Activity context,
User user,
Itinerary itinerary,
RunnableUsingBusinessEntity callback)
Check if itinerary is reviewed by user.
|
static void |
isReviewedUser(android.app.Activity context,
User reviewedUser,
User user,
RunnableUsingBusinessEntity callback)
Check if user is reviewed by user.
|
static void |
permissionReviewItinerary(android.app.Activity context,
User user,
Itinerary itinerary,
Consumer<java.lang.Boolean> callback,
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener)
Check if user can review itinerary.
|
static void |
permissionReviewUser(android.app.Activity context,
User reviewedUser,
User user,
Consumer<java.lang.Boolean> callback,
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener)
Check if user can review user.
|
static void |
requestItineraryReviews(android.app.Activity context,
Itinerary itinerary,
AsyncDatabaseConnector.OnEndConnectionListener<UserReview> callback)
Get all the reviews written to a itinerary.
|
static void |
requestUserReviews(android.app.Activity context,
User reviewedUser,
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener,
AsyncDatabaseConnector.OnEndConnectionListener<UserReview> callback)
Get all the reviews written to a user.
|
static void |
updateReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
Consumer<java.lang.Boolean> callback)
Update itinerary's review.
|
static void |
updateReviewUser(android.app.Activity context,
UserReview userReview,
Consumer<java.lang.Boolean> callback)
Update user's review.
|
public static void getAvgItineraryFeedback(android.app.Activity context,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Float> callback)
context - The context of the caller.itinerary - The itinerary of the feedback's average.callback - A callback to be executed after the operation is completed.public static void permissionReviewItinerary(android.app.Activity context,
User user,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Boolean> callback,
@Nullable
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener)
context - The context of the caller.user - The user reviewer.itinerary - The itinerary reviewed.onStartConnectionListener - On start connection callback.callback - A callback to be executed after the operation is completed.public static void isReviewedItinerary(android.app.Activity context,
User user,
Itinerary itinerary,
@Nullable
RunnableUsingBusinessEntity callback)
context - The context of the caller.user - Reviewer of the itinerary.itinerary - The itinerary reviewed.callback - A callback to be executed after the operation is completed.public static void updateReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.itineraryReview - Review of the itinerary.callback - A callback to be executed after the operation is completed.public static void deleteReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.itineraryReview - Review of the itinerary.callback - A callback to be executed after the operation is completed.public static void addReviewItinerary(android.app.Activity context,
ItineraryReview itineraryReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.itineraryReview - Review of the itinerary.callback - A callback to be executed after the operation is completed.public static void getAvgUserFeedback(android.app.Activity context,
User user,
@Nullable
Consumer<java.lang.Float> callback)
context - The context of the caller.user - The user of the feedback's avarage.callback - A callback to be executed after the operation is completed.public static void permissionReviewUser(android.app.Activity context,
User reviewedUser,
User user,
@Nullable
Consumer<java.lang.Boolean> callback,
@Nullable
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener)
context - The context of the caller.user - The user reviewer.reviewedUser - The user reviewed.callback - A callback to be executed after the operation is completed.onStartConnectionListener - On start connection callback.public static void isReviewedUser(android.app.Activity context,
User reviewedUser,
User user,
@Nullable
RunnableUsingBusinessEntity callback)
context - The context of the caller.user - Reviewer of the itinerary.reviewedUser - The user reviewed.callback - A callback to be executed after the operation is completed.public static void updateReviewUser(android.app.Activity context,
UserReview userReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.userReview - Review of the user.callback - A callback to be executed after the operation is completed.public static void deleteReviewUser(android.app.Activity context,
UserReview userReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.userReview - Review of the user.callback - A callback to be executed after the operation is completed.public static void addReviewUser(android.app.Activity context,
UserReview userReview,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The context of the caller.userReview - Review of the user.callback - A callback to be executed after the operation is completed.public static void requestUserReviews(android.app.Activity context,
User reviewedUser,
@Nullable
AsyncDatabaseConnector.OnStartConnectionListener onStartConnectionListener,
@Nullable
AsyncDatabaseConnector.OnEndConnectionListener<UserReview> callback)
context - The context of the caller.reviewedUser - The user reviewed.callback - A callback to be executed after the operation is completed.public static void requestItineraryReviews(android.app.Activity context,
Itinerary itinerary,
@Nullable
AsyncDatabaseConnector.OnEndConnectionListener<UserReview> callback)
context - The context of the caller.itinerary - The itinerary reviewed.callback - A callback to be executed after the operation is completed.