Files
raven/server/AyaNova/models/GlobalOpsNotificationSettings.cs
2020-07-22 23:02:30 +00:00

45 lines
1.6 KiB
C#

using System;
using AyaNova.Biz;
namespace AyaNova.Models
{
public class GlobalOpsNotificationSettings
{
public long Id { get; set; }//this is always 1 as there is only ever one single global Ops object
public uint Concurrency { get; set; }
public bool SmtpDeliveryActive { get; set; }
public string SmtpServerAddress { get; set; }
public string SmtpAccount { get; set; }
public string SmtpPassword { get; set; }
public NotifyMailSecurity ConnectionSecurity { get; set; }
public int SmtpServerPort { get; set; }
public string NotifyFromAddress { get; set; }
public string AyaNovaServerURL { get; set; }
public GlobalOpsNotificationSettings()
{
SmtpDeliveryActive = true;
Id = 1;
#if (DEBUG)
SmtpServerAddress = "mail.ayanova.com";
SmtpAccount = "support@ayanova.com";
SmtpPassword = "e527b6c5a00c27bb61ca694b3de0ee178cbe3f1541a772774762ed48e9caf5ce";
ConnectionSecurity = NotifyMailSecurity.StartTls;
SmtpServerPort = 465;
NotifyFromAddress = "support@ayanova.com";
AyaNovaServerURL="http://localhost:8080";
#else
SmtpServerAddress="mail.example.com";
SmtpAccount="notifydeliverfromaccount@example.com";
SmtpPassword="examplepassword";
ConnectionSecurity= NotifyMailSecurity.SSLTLS;
SmtpServerPort=587;
NotifyFromAddress="noreply@example.com";
AyaNovaServerURL="https://ayanovaserver.example.com";
#endif
}
}
}