|
|
@ -17,7 +17,7 @@ namespace Ombi.Notifications
|
|
|
|
public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s, UserNotificationPreferences pref)
|
|
|
|
public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s, UserNotificationPreferences pref)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LoadIssues(opts);
|
|
|
|
LoadIssues(opts);
|
|
|
|
|
|
|
|
RequestId = req.Id.ToString();
|
|
|
|
string title;
|
|
|
|
string title;
|
|
|
|
if (req == null)
|
|
|
|
if (req == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -68,6 +68,7 @@ namespace Ombi.Notifications
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LoadIssues(opts);
|
|
|
|
LoadIssues(opts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RequestId = req.Id.ToString();
|
|
|
|
string title;
|
|
|
|
string title;
|
|
|
|
if (req == null)
|
|
|
|
if (req == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -114,6 +115,7 @@ namespace Ombi.Notifications
|
|
|
|
public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref)
|
|
|
|
public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LoadIssues(opts);
|
|
|
|
LoadIssues(opts);
|
|
|
|
|
|
|
|
RequestId = req.Id.ToString();
|
|
|
|
string title;
|
|
|
|
string title;
|
|
|
|
if (req == null)
|
|
|
|
if (req == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -239,6 +241,7 @@ namespace Ombi.Notifications
|
|
|
|
public string UserPreference { get; set; }
|
|
|
|
public string UserPreference { get; set; }
|
|
|
|
public string DenyReason { get; set; }
|
|
|
|
public string DenyReason { get; set; }
|
|
|
|
public string AvailableDate { get; set; }
|
|
|
|
public string AvailableDate { get; set; }
|
|
|
|
|
|
|
|
public string RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// System Defined
|
|
|
|
// System Defined
|
|
|
|
private string LongDate => DateTime.Now.ToString("D");
|
|
|
|
private string LongDate => DateTime.Now.ToString("D");
|
|
|
@ -275,6 +278,7 @@ namespace Ombi.Notifications
|
|
|
|
{nameof(UserPreference),UserPreference},
|
|
|
|
{nameof(UserPreference),UserPreference},
|
|
|
|
{nameof(DenyReason),DenyReason},
|
|
|
|
{nameof(DenyReason),DenyReason},
|
|
|
|
{nameof(AvailableDate),AvailableDate},
|
|
|
|
{nameof(AvailableDate),AvailableDate},
|
|
|
|
|
|
|
|
{nameof(RequestId),RequestId},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|