mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -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
|
// Copyright (c) 2016 Jamie Rees
|
||||||
// File: IMattermostApi.cs
|
// File: IMattermostApi.cs
|
||||||
// Created By: Jamie Rees
|
// Created By: Michel Zaleski
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
// a copy of this software and associated documentation files (the
|
// a copy of this software and associated documentation files (the
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// /************************************************************************
|
// /************************************************************************
|
||||||
// Copyright (c) 2016 Jamie Rees
|
// Copyright (c) 2016 Jamie Rees
|
||||||
// File: MattermostNotificationBody.cs
|
// File: MattermostNotificationBody.cs
|
||||||
// Created By: Jamie Rees
|
// Created By: Michel Zaleski
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
// a copy of this software and associated documentation files (the
|
// a copy of this software and associated documentation files (the
|
||||||
|
@ -37,17 +37,7 @@ namespace Ombi.Api.Models.Notifications
|
||||||
username = "Ombi";
|
username = "Ombi";
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonIgnore]
|
public string username { get; set; } = "Ombi";
|
||||||
private string _username;
|
|
||||||
public string username
|
|
||||||
{
|
|
||||||
get { return _username; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(value))
|
|
||||||
_username = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public string channel { get; set; }
|
public string channel { get; set; }
|
||||||
public string text { get; set; }
|
public string text { get; set; }
|
||||||
public string icon_url { get; set; }
|
public string icon_url { get; set; }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// /************************************************************************
|
// /************************************************************************
|
||||||
// Copyright (c) 2016 Jamie Rees
|
// Copyright (c) 2016 Jamie Rees
|
||||||
// File: PlexApi.cs
|
// File: PlexApi.cs
|
||||||
// Created By: Jamie Rees
|
// Created By: Michel Zaleski
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
// a copy of this software and associated documentation files (the
|
// a copy of this software and associated documentation files (the
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// /************************************************************************
|
// /************************************************************************
|
||||||
// Copyright (c) 2016 Jamie Rees
|
// Copyright (c) 2016 Jamie Rees
|
||||||
// File: MattermostNotification.cs
|
// File: MattermostNotification.cs
|
||||||
// Created By: Jamie Rees
|
// Created By: Michel Zaleski
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
// a copy of this software and associated documentation files (the
|
// a copy of this software and associated documentation files (the
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// /************************************************************************
|
// /************************************************************************
|
||||||
// Copyright (c) 2016 Jamie Rees
|
// Copyright (c) 2016 Jamie Rees
|
||||||
// File: MattermostSettingsValidator.cs
|
// File: MattermostSettingsValidator.cs
|
||||||
// Created By: Jamie Rees
|
// Created By: Michel Zaleski
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||||||
// a copy of this software and associated documentation files (the
|
// a copy of this software and associated documentation files (the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue