mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 23:42:36 -07:00
Fixed the way we will be using custom messages
This commit is contained in:
parent
8953d4eaa8
commit
fea4dd6309
9 changed files with 223 additions and 115 deletions
|
@ -34,18 +34,28 @@ namespace PlexRequests.Core.SettingModels
|
|||
{
|
||||
public NotificationSettings()
|
||||
{
|
||||
CustomParamaters = new Dictionary<string, string>
|
||||
Message = new Dictionary<NotificationType, NotificationMessageContent>
|
||||
{
|
||||
{"Username", string.Empty },
|
||||
{"Date", string.Empty },
|
||||
{"Title", string.Empty },
|
||||
{"RequestType", string.Empty },
|
||||
{"Issue", string.Empty },
|
||||
|
||||
{NotificationType.NewRequest, new NotificationMessageContent() },
|
||||
{NotificationType.Issue, new NotificationMessageContent() },
|
||||
{NotificationType.AdminNote, new NotificationMessageContent() },
|
||||
{NotificationType.RequestApproved, new NotificationMessageContent() },
|
||||
{NotificationType.RequestAvailable, new NotificationMessageContent() },
|
||||
{NotificationType.Test, new NotificationMessageContent() },
|
||||
};
|
||||
}
|
||||
public Dictionary<NotificationType, string> Message { get; set; }
|
||||
public Dictionary<NotificationType, string> Subject { get; set; }
|
||||
public Dictionary<string,string> CustomParamaters { get; set; }
|
||||
public Dictionary<NotificationType, NotificationMessageContent> Message { get; set; }
|
||||
}
|
||||
|
||||
public static class NotificationCurly
|
||||
{
|
||||
public static readonly List<string> Curlys = new List<string>
|
||||
{
|
||||
"Username",
|
||||
"Title",
|
||||
"Date",
|
||||
"Issue",
|
||||
"Type"
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue