This commit is contained in:
Jamie.Rees 2017-08-07 16:02:00 +01:00
commit d5477adc6b
24 changed files with 613 additions and 8 deletions

View file

@ -0,0 +1,30 @@
using Newtonsoft.Json;
namespace Ombi.Api.Slack.Models
{
public class SlackNotificationBody
{
[JsonConstructor]
public SlackNotificationBody()
{
username = "Ombi";
}
[JsonIgnore]
private string _username;
public string username
{
get => _username;
set
{
if (!string.IsNullOrEmpty(value))
_username = value;
}
}
public string channel { get; set; }
public string text { get; set; }
public string icon_url { get; set; }
public string icon_emoji { get; set; }
}
}