2024-10-07 02:13:35 +03:00
|
|
|
|
using Mirea.Api.Endpoint.Configuration.ConfigurationChecks.Interfaces;
|
2024-05-28 06:38:24 +03:00
|
|
|
|
|
2024-10-07 02:13:35 +03:00
|
|
|
|
namespace Mirea.Api.Endpoint.Configuration.ConfigurationChecks.Settings;
|
2024-05-28 06:38:24 +03:00
|
|
|
|
|
|
|
|
|
public class EmailSettings : IIsConfigured
|
|
|
|
|
{
|
|
|
|
|
public string? Server { get; set; }
|
|
|
|
|
public string? User { get; set; }
|
|
|
|
|
public string? Password { get; set; }
|
|
|
|
|
public string? From { get; set; }
|
|
|
|
|
public int? Port { get; set; }
|
|
|
|
|
public bool? Ssl { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsConfigured()
|
|
|
|
|
{
|
|
|
|
|
return !string.IsNullOrEmpty(Server) &&
|
|
|
|
|
!string.IsNullOrEmpty(User) &&
|
|
|
|
|
!string.IsNullOrEmpty(Password) &&
|
|
|
|
|
!string.IsNullOrEmpty(From) &&
|
|
|
|
|
Port.HasValue &&
|
|
|
|
|
Ssl.HasValue;
|
|
|
|
|
}
|
|
|
|
|
}
|