You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Api.Slack/Models/SlackNotificationBody.cs

30 lines
677 B

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; }
}
}