summaryrefslogtreecommitdiffstats
path: root/src/Services/Interfaces/IAppReservationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Services/Interfaces/IAppReservationService.cs')
-rw-r--r--src/Services/Interfaces/IAppReservationService.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Services/Interfaces/IAppReservationService.cs b/src/Services/Interfaces/IAppReservationService.cs
new file mode 100644
index 0000000..cf41480
--- /dev/null
+++ b/src/Services/Interfaces/IAppReservationService.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Threading.Tasks;
+using IOL.Fagprove.Data.Models;
+
+namespace IOL.Fagprove.Services.Interfaces
+{
+ public interface IAppReservationService
+ {
+ /// <summary>
+ /// Check current reservations to determine if provided reservation is possible to make.
+ /// </summary>
+ /// <param name="reservation">Reservation to check.</param>
+ /// <returns>Boolean indicating if the reservation is possible or not</returns>
+ bool ReservationIsPossible(Reservation reservation);
+ /// <summary>
+ /// Sends a status mail to the user that created provided reservation.
+ /// The contents of the message is determined by the provided reservation status.
+ /// </summary>
+ /// <param name="reservation">Reservation to send email on.</param>
+ /// <returns>Boolean indicating if the status mail was sent.</returns>
+ bool SendReservationStatusMail(Reservation reservation);
+ /// <summary>
+ /// Determines if the provided reservation is valid and can be saved to db.
+ /// </summary>
+ /// <param name="reservation">Reservation to check.</param>
+ /// <returns>Boolean indicating if the reservation is valid or not.</returns>
+ bool ReservationIsValid(Reservation reservation);
+ }
+} \ No newline at end of file