Implemented mattermost notifications based on slack notification

This commit is contained in:
anonaut 2017-03-13 23:43:42 +01:00
commit b287c8655f
21 changed files with 579 additions and 2 deletions

View file

@ -0,0 +1,12 @@
using System;
using Newtonsoft.Json;
namespace Ombi.Core.SettingModels
{
public sealed class MattermostNotificationSettings : NotificationSettings
{
public string WebhookUrl { get; set; }
public string Channel { get; set; }
public string Username { get; set; }
}
}

View file

@ -51,11 +51,13 @@ namespace Ombi.Core.SettingModels
}
};
SlackNotification = new List<NotificationMessage>();
MattermostNotification = new List<NotificationMessage>();
PushoverNotification = new List<NotificationMessage>();
PushbulletNotification = new List<NotificationMessage>();
}
public List<NotificationMessage> EmailNotification { get; set; }
public List<NotificationMessage> SlackNotification { get; set; }
public List<NotificationMessage> MattermostNotification { get; set; }
public List<NotificationMessage> PushbulletNotification { get; set; }
public List<NotificationMessage> PushoverNotification { get; set; }
}