File tree Expand file tree Collapse file tree
Aquiis.SimpleStart/Infrastructure/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22using Aquiis . SimpleStart . Core . Interfaces . Services ;
33
4- < << << << HEAD
5- namespace Aquiis . SimpleStart . Infrastructure . Services
6- {
7- public class SMSService : ISMSService
8- {
9- private readonly ILogger < SMSService > _logger ;
10-
11- public SMSService ( ILogger < SMSService > logger )
12- {
13- _logger = logger ;
14- }
15-
16- public async Task SendSMSAsync ( string phoneNumber , string message )
17- {
18- // TODO: Implement with Twilio in Task 2.5
19- _logger . LogInformation ( $ "[SMS] To: { phoneNumber } , Message: { message } ") ;
20- await Task . CompletedTask ;
21- }
22-
23- public async Task < bool > ValidatePhoneNumberAsync ( string phoneNumber )
24- {
25- // Basic validation
26- var digits = new string ( phoneNumber . Where ( char . IsDigit ) . ToArray ( ) ) ;
27- return await Task . FromResult ( digits . Length >= 10 ) ;
28- }
29- = == == ==
304namespace Aquiis . SimpleStart . Infrastructure . Services ;
315
326public class SMSService : ISMSService
@@ -50,6 +24,5 @@ public async Task<bool> ValidatePhoneNumberAsync(string phoneNumber)
5024 // Basic validation
5125 var digits = new string ( phoneNumber . Where ( char . IsDigit ) . ToArray ( ) ) ;
5226 return await Task . FromResult ( digits . Length >= 10 ) ;
53- > >>> >>> phase - 2.4 - notification - infrastructure
5427 }
5528}
You can’t perform that action at this time.
0 commit comments