Winify – Diff between revs 67 and 83

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 67 Rev 83
Line -... Line 1...
-   1 using System.Collections.Generic;
1 using Newtonsoft.Json; 2 using Newtonsoft.Json;
-   3 using System.ComponentModel;
-   4 using System.Runtime.CompilerServices;
-   5 using Winify.Properties;
Line 2... Line 6...
2   6  
3 namespace Winify.Gotify 7 namespace Winify.Gotify
4 { 8 {
5 public class GotifyMessageExtras 9 public class GotifyMessageExtras : INotifyPropertyChanged
-   10 {
-   11 private GotifyMessageExtrasClientDisplay _gotifyMessageExtrasClientDisplay = new GotifyMessageExtrasClientDisplay();
6 { 12  
7 [JsonProperty(PropertyName = "client::display")] 13 [JsonProperty(PropertyName = "client::display")]
-   14 public GotifyMessageExtrasClientDisplay GotifyMessageExtrasClientDisplay
-   15 {
-   16 get => _gotifyMessageExtrasClientDisplay;
-   17 set
-   18 {
-   19 if (Equals(value, _gotifyMessageExtrasClientDisplay)) return;
-   20 _gotifyMessageExtrasClientDisplay = value;
-   21 OnPropertyChanged();
-   22 }
-   23 }
-   24  
-   25 [UsedImplicitly]
-   26 public GotifyMessageExtras()
-   27 {
-   28  
-   29 }
-   30  
-   31 public event PropertyChangedEventHandler PropertyChanged;
-   32  
-   33 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
-   34 {
-   35 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
8 public GotifyMessageExtrasClientDisplay GotifyMessageExtrasClientDisplay { get; set; } 36 }
9 } 37 }