fixed author and rewrote getter/setter method

This commit is contained in:
Patrick Frisch 2017-04-10 15:48:55 +02:00
commit 235337e7c9
5 changed files with 6 additions and 16 deletions

View file

@ -2,7 +2,7 @@
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: MattermostNotificationBody.cs
// Created By: Jamie Rees
// Created By: Michel Zaleski
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@ -37,17 +37,7 @@ namespace Ombi.Api.Models.Notifications
username = "Ombi";
}
[JsonIgnore]
private string _username;
public string username
{
get { return _username; }
set
{
if (!string.IsNullOrEmpty(value))
_username = value;
}
}
public string username { get; set; } = "Ombi";
public string channel { get; set; }
public string text { get; set; }
public string icon_url { get; set; }