Winify – Blame information for rev 83
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
83 | office | 1 | using System.Collections.Generic; |
2 | using Newtonsoft.Json; |
||
3 | using System.ComponentModel; |
||
4 | using System.Runtime.CompilerServices; |
||
5 | using Winify.Properties; |
||
1 | office | 6 | |
7 | namespace Winify.Gotify |
||
8 | { |
||
83 | office | 9 | public class GotifyApplication : INotifyPropertyChanged |
1 | office | 10 | { |
83 | office | 11 | private int _id; |
12 | private string _token; |
||
13 | private string _name; |
||
14 | private string _description; |
||
15 | private bool _internal; |
||
16 | private string _image; |
||
17 | |||
1 | office | 18 | #region Public Enums, Properties and Fields |
19 | |||
83 | office | 20 | [JsonProperty(PropertyName = "id")] |
21 | public int Id |
||
22 | { |
||
23 | get => _id; |
||
24 | set |
||
25 | { |
||
26 | if (value == _id) return; |
||
27 | _id = value; |
||
28 | OnPropertyChanged(); |
||
29 | } |
||
30 | } |
||
1 | office | 31 | |
83 | office | 32 | [JsonProperty(PropertyName = "token")] |
33 | public string Token |
||
34 | { |
||
35 | get => _token; |
||
36 | set |
||
37 | { |
||
38 | if (value == _token) return; |
||
39 | _token = value; |
||
40 | OnPropertyChanged(); |
||
41 | } |
||
42 | } |
||
1 | office | 43 | |
83 | office | 44 | [JsonProperty(PropertyName = "name")] |
45 | public string Name |
||
46 | { |
||
47 | get => _name; |
||
48 | set |
||
49 | { |
||
50 | if (value == _name) return; |
||
51 | _name = value; |
||
52 | OnPropertyChanged(); |
||
53 | } |
||
54 | } |
||
1 | office | 55 | |
56 | [JsonProperty(PropertyName = "description")] |
||
83 | office | 57 | public string Description |
58 | { |
||
59 | get => _description; |
||
60 | set |
||
61 | { |
||
62 | if (value == _description) return; |
||
63 | _description = value; |
||
64 | OnPropertyChanged(); |
||
65 | } |
||
66 | } |
||
1 | office | 67 | |
68 | [JsonProperty(PropertyName = "internal")] |
||
83 | office | 69 | public bool Internal |
70 | { |
||
71 | get => _internal; |
||
72 | set |
||
73 | { |
||
74 | if (value == _internal) return; |
||
75 | _internal = value; |
||
76 | OnPropertyChanged(); |
||
77 | } |
||
78 | } |
||
1 | office | 79 | |
83 | office | 80 | [JsonProperty(PropertyName = "image")] |
81 | public string Image |
||
82 | { |
||
83 | get => _image; |
||
84 | set |
||
85 | { |
||
86 | if (value == _image) return; |
||
87 | _image = value; |
||
88 | OnPropertyChanged(); |
||
89 | } |
||
90 | } |
||
1 | office | 91 | |
92 | #endregion |
||
83 | office | 93 | |
94 | [UsedImplicitly] |
||
95 | public GotifyApplication() |
||
96 | { |
||
97 | |||
98 | } |
||
99 | |||
100 | public event PropertyChangedEventHandler PropertyChanged; |
||
101 | |||
102 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
103 | { |
||
104 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
105 | } |
||
1 | office | 106 | } |
107 | } |