mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fixed author and rewrote getter/setter method
This commit is contained in:
parent
cd2c9a40e5
commit
235337e7c9
5 changed files with 6 additions and 16 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue