Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ HEAD  →  ?path2? @ 1
/trunk/Winify/Gotify/GotifyApplication.cs
@@ -1,107 +1,29 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Winify.Properties;
using Newtonsoft.Json;
 
namespace Winify.Gotify
{
public class GotifyApplication : INotifyPropertyChanged
public class GotifyApplication
{
private int _id;
private string _token;
private string _name;
private string _description;
private bool _internal;
private string _image;
 
#region Public Enums, Properties and Fields
 
[JsonProperty(PropertyName = "id")]
public int Id
{
get => _id;
set
{
if (value == _id) return;
_id = value;
OnPropertyChanged();
}
}
public int Id { get; set; }
 
[JsonProperty(PropertyName = "token")]
public string Token
{
get => _token;
set
{
if (value == _token) return;
_token = value;
OnPropertyChanged();
}
}
public string Token { get; set; }
 
[JsonProperty(PropertyName = "name")]
public string Name
{
get => _name;
set
{
if (value == _name) return;
_name = value;
OnPropertyChanged();
}
}
public string Name { get; set; }
 
[JsonProperty(PropertyName = "description")]
public string Description
{
get => _description;
set
{
if (value == _description) return;
_description = value;
OnPropertyChanged();
}
}
public string Description { get; set; }
 
[JsonProperty(PropertyName = "internal")]
public bool Internal
{
get => _internal;
set
{
if (value == _internal) return;
_internal = value;
OnPropertyChanged();
}
}
public bool Internal { get; set; }
 
[JsonProperty(PropertyName = "image")]
public string Image
{
get => _image;
set
{
if (value == _image) return;
_image = value;
OnPropertyChanged();
}
}
public string Image { get; set; }
 
#endregion
 
[UsedImplicitly]
public GotifyApplication()
{
 
}
 
public event PropertyChangedEventHandler PropertyChanged;
 
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}