From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- src/Services/Interfaces/IAppReservationService.cs | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Services/Interfaces/IAppReservationService.cs (limited to 'src/Services/Interfaces/IAppReservationService.cs') 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 + { + /// + /// Check current reservations to determine if provided reservation is possible to make. + /// + /// Reservation to check. + /// Boolean indicating if the reservation is possible or not + bool ReservationIsPossible(Reservation reservation); + /// + /// Sends a status mail to the user that created provided reservation. + /// The contents of the message is determined by the provided reservation status. + /// + /// Reservation to send email on. + /// Boolean indicating if the status mail was sent. + bool SendReservationStatusMail(Reservation reservation); + /// + /// Determines if the provided reservation is valid and can be saved to db. + /// + /// Reservation to check. + /// Boolean indicating if the reservation is valid or not. + bool ReservationIsValid(Reservation reservation); + } +} \ No newline at end of file -- cgit v1.3