ISMSProvider.cs 499 B

1234567891011121314151617181920212223242526
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace InABox.API
  8. {
  9. public enum SMSProviderType
  10. {
  11. Exchange,
  12. IMAP,
  13. ASPSMS,
  14. Twilio
  15. }
  16. public interface ISMSProvider
  17. {
  18. bool SendMessage(string recipient, string message);
  19. SMSProviderType ProviderType { get; }
  20. TwoFactorAuthenticationType TwoFactorAuthenticationType { get; }
  21. }
  22. }