public class Mailer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
sendAccountDeleteConfirmationEmail(Consumer<java.lang.Boolean> callback)
Send the account delete confirmation e-mail.
|
static void |
sendItineraryRequestEmail(android.app.Activity context,
Reservation reservation,
Consumer<java.lang.Boolean> callback)
Send an e-mail for the new reservation request.
|
static void |
sendPasswordResetLink(android.app.Activity context,
java.lang.String email,
Consumer<java.lang.Boolean> callback)
Send the e-mail that contains the link for reset the user's password.
|
static void |
sendRegistrationConfirmationEmail(android.app.Activity context,
User user,
Consumer<java.lang.Boolean> callback)
Send the registration confirmation e-mail.
|
static void |
sendReservationConfirmationEmail(android.app.Activity context,
Reservation reservation,
Consumer<java.lang.Boolean> callback)
Send the reservation confirmation e-mail.
|
static void |
sendReservationRefuseEmail(android.app.Activity context,
Reservation reservation,
Consumer<java.lang.Boolean> callback)
Send the reservation refuse e-mail.
|
static void |
sendReservationRemoveEmail(android.app.Activity context,
Itinerary itinerary,
Consumer<java.lang.Boolean> callback)
Send the reservation remove e-mail.
|
public static void sendReservationConfirmationEmail(android.app.Activity context,
Reservation reservation,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.reservation - The confirmed reservation.callback - A callback to be called after the e-mail has been sent.public static void sendRegistrationConfirmationEmail(android.app.Activity context,
User user,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.user - The registered user.callback - A callback to be called after the e-mail has been sent.public static void sendItineraryRequestEmail(android.app.Activity context,
Reservation reservation,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.reservation - The requested reservation.callback - A callback to be called after the e-mail has been sent.public static void sendReservationRefuseEmail(android.app.Activity context,
Reservation reservation,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.reservation - The refused reservation.callback - A callback to be called after the e-mail has been sent.public static void sendReservationRemoveEmail(android.app.Activity context,
Itinerary itinerary,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.itinerary - The itinerary where the reservation was removed.callback - A callback to be called after the e-mail has been sent.public static void sendAccountDeleteConfirmationEmail(@Nullable
Consumer<java.lang.Boolean> callback)
callback - A callback to be called after the e-mail has been sent.public static void sendPasswordResetLink(android.app.Activity context,
java.lang.String email,
@Nullable
Consumer<java.lang.Boolean> callback)
context - The activity context.email - The recipient e-mail.callback - A callback to be called after the e-mail has been sent.