Files
douyin/model/dto/EmailNotificationModels.cs
T

32 lines
953 B
C#

namespace dy.net.model.dto
{
public enum EmailSecurityMode
{
None = 0,
StartTls = 1,
SslOnConnect = 2
}
public sealed class EmailNotificationSettingsDto
{
public bool Enabled { get; set; }
public string Host { get; set; }
public int Port { get; set; } = 465;
public EmailSecurityMode SecurityMode { get; set; } = EmailSecurityMode.SslOnConnect;
public string UserName { get; set; }
public string Password { get; set; }
public bool HasPassword { get; set; }
public string FromAddress { get; set; }
public string FromName { get; set; }
public string Recipients { get; set; }
public DateTime? LastTestedAt { get; set; }
public string LastTestMessage { get; set; }
}
public sealed class FollowLiveEmailUpdateDto
{
public string Id { get; set; }
public bool Enabled { get; set; }
}
}