source: resTools_backend/backend/Services/SmsService.cs

Last change on this file was 7a983b0, checked in by Danilo <danilo.najkov@…>, 3 years ago

move files

  • Property mode set to 100644
File size: 647 bytes
Line 
1using backend.Entities;
2
3namespace backend.Services
4{
5 public interface ISmsService
6 {
7 public Task ReservationStatusUpdate(string name, string number, ReservationStatus newStatus);
8 }
9 public class SmsService : ISmsService
10 {
11 public async Task ReservationStatusUpdate(string name, string number, ReservationStatus newStatus)
12 {
13 string message = $"Hello {name}, the status of your reservation was changed to: { Enum.GetName(typeof(ReservationStatus), newStatus)}";
14
15 // simulate sending sms
16 await Task.Delay(100);
17 Console.WriteLine(message);
18 }
19 }
20}
Note: See TracBrowser for help on using the repository browser.