This commit is contained in:
46
server/models/GlobalOpsNotificationSettings.cs
Normal file
46
server/models/GlobalOpsNotificationSettings.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Sockeye.Biz;
|
||||
namespace Sockeye.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 SockeyeServerURL { get; set; }
|
||||
|
||||
public GlobalOpsNotificationSettings()
|
||||
{
|
||||
SmtpDeliveryActive = true;
|
||||
Id = 1;
|
||||
|
||||
#if (DEBUG)
|
||||
SmtpDeliveryActive = true;
|
||||
SmtpServerAddress = "smtp.fastmail.com";
|
||||
SmtpAccount = "support@onayanova.com";
|
||||
SmtpPassword = "mk8pmhzlf5hvzgh5";
|
||||
ConnectionSecurity = NotifyMailSecurity.SSLTLS;
|
||||
SmtpServerPort = 465;
|
||||
NotifyFromAddress = "support@ayanova.com";
|
||||
SockeyeServerURL = "http://localhost:8080";
|
||||
#else
|
||||
SmtpDeliveryActive = false;
|
||||
SmtpServerAddress = "mail.example.com";
|
||||
SmtpAccount = "notifydeliverfromaccount@example.com";
|
||||
SmtpPassword = "examplepassword";
|
||||
ConnectionSecurity = NotifyMailSecurity.SSLTLS;
|
||||
SmtpServerPort = 587;
|
||||
NotifyFromAddress = "noreply@example.com";
|
||||
SockeyeServerURL = "https://url_to_my_ayanova_app";
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user