Winify – Blame information for rev 75

Subversion Repositories:
Rev:
Rev Author Line No. Line
15 office 1 using System.ComponentModel;
2 using System.Runtime.CompilerServices;
3 using System.Xml.Serialization;
25 office 4 using Announcements.Properties;
15 office 5  
6 namespace Announcements
7 {
8 public class Announcement : INotifyPropertyChanged
9 {
28 office 10 #region Interface
11  
12 public event PropertyChangedEventHandler PropertyChanged;
13  
14 #endregion
15  
16 #region Private Methods
17  
18 [NotifyPropertyChangedInvocator]
19 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
20 {
21 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
22 }
23  
24 #endregion
25  
15 office 26 #region Public Enums, Properties and Fields
27  
28 office 28 [XmlIgnore] public string Id => _appId.ToString();
15 office 29  
30 [XmlElement(ElementName = "AppId")]
31 public int AppId
32 {
33 get => _appId;
34 set
35 {
28 office 36 if (value == _appId) return;
15 office 37  
38 _appId = value;
39 OnPropertyChanged();
40 }
41 }
42  
43 [XmlElement(ElementName = "LingerTime")]
71 office 44 public decimal LingerTime
15 office 45 {
46 get => _lingerTime;
47 set
48 {
28 office 49 if (value == _lingerTime) return;
15 office 50  
51 _lingerTime = value;
52 OnPropertyChanged();
53 }
54 }
55  
73 office 56 [XmlElement(ElementName = "Ignore")]
57 public bool Ignore
15 office 58 {
73 office 59 get => _ignore;
15 office 60 set
61 {
73 office 62 if (value == _ignore) return;
15 office 63  
73 office 64 _ignore = value;
15 office 65 OnPropertyChanged();
66 }
67 }
68  
74 office 69 [XmlElement(ElementName = "EnableChime")]
73 office 70 public bool EnableChime
71 office 71 {
73 office 72 get => _enableChime;
71 office 73 set
74 {
73 office 75 if (value == _enableChime) return;
71 office 76  
73 office 77 _enableChime = value;
71 office 78 OnPropertyChanged();
79 }
80 }
81  
75 office 82 [XmlElement(ElementName = "Chime")]
83 public byte[] Chime
84 {
85 get => _chime;
86 set
87 {
88 if (value == _chime) return;
89  
90 _chime = value;
91 OnPropertyChanged();
92 }
93 }
94  
15 office 95 #endregion
96  
97 #region Private Delegates, Events, Enums, Properties, Indexers and Fields
98  
58 office 99 private int _appId = -1;
15 office 100  
71 office 101 private decimal _lingerTime = 5000;
15 office 102  
21 office 103 private string _speak = string.Empty;
15 office 104  
71 office 105 private bool _ignore = false;
106  
73 office 107 private bool _enableChime = true;
108  
75 office 109 private byte[] _chime = new byte[] {};
110  
15 office 111 #endregion
112  
113 #region Constructors, Destructors and Finalizers
114  
115 [UsedImplicitly]
116 public Announcement()
117 {
118 }
119  
120 #endregion
121 }
122 }