Winify – Blame information for rev 28
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
6 | office | 1 | using System.ComponentModel; |
2 | using System.Runtime.CompilerServices; |
||
3 | using System.Xml.Serialization; |
||
25 | office | 4 | using Servers.Properties; |
6 | office | 5 | |
6 | namespace Servers |
||
7 | { |
||
8 | [XmlRoot(ElementName = "Server")] |
||
9 | public class Server : INotifyPropertyChanged |
||
10 | { |
||
28 | office | 11 | #region Interface |
12 | |||
13 | public event PropertyChangedEventHandler PropertyChanged; |
||
14 | |||
15 | #endregion |
||
16 | |||
17 | #region Private Methods |
||
18 | |||
19 | [NotifyPropertyChangedInvocator] |
||
20 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
21 | { |
||
22 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
23 | } |
||
24 | |||
25 | #endregion |
||
26 | |||
6 | office | 27 | #region Public Enums, Properties and Fields |
28 | |||
29 | [XmlElement(ElementName = "Name")] |
||
30 | public string Name |
||
31 | { |
||
32 | get => _name; |
||
33 | set |
||
34 | { |
||
28 | office | 35 | if (value == _name) return; |
6 | office | 36 | |
37 | _name = value; |
||
38 | OnPropertyChanged(); |
||
39 | } |
||
40 | } |
||
41 | |||
12 | office | 42 | [XmlElement(ElementName = "Url")] |
43 | public string Url |
||
6 | office | 44 | { |
12 | office | 45 | get => _url; |
6 | office | 46 | set |
47 | { |
||
28 | office | 48 | if (value == _url) return; |
6 | office | 49 | |
12 | office | 50 | _url = value; |
6 | office | 51 | OnPropertyChanged(); |
52 | } |
||
53 | } |
||
54 | |||
55 | [XmlElement(ElementName = "Username")] |
||
56 | public string Username |
||
57 | { |
||
58 | get => _username; |
||
59 | set |
||
60 | { |
||
28 | office | 61 | if (value == _username) return; |
6 | office | 62 | |
63 | _username = value; |
||
64 | OnPropertyChanged(); |
||
65 | } |
||
66 | } |
||
67 | |||
68 | [XmlElement(ElementName = "Password")] |
||
69 | public string Password |
||
70 | { |
||
71 | get => _password; |
||
72 | set |
||
73 | { |
||
28 | office | 74 | if (value == _password) return; |
6 | office | 75 | |
76 | _password = value; |
||
77 | OnPropertyChanged(); |
||
78 | } |
||
79 | } |
||
80 | |||
81 | #endregion |
||
82 | |||
83 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
||
84 | |||
21 | office | 85 | private string _name = string.Empty; |
6 | office | 86 | |
21 | office | 87 | private string _password = string.Empty; |
6 | office | 88 | |
21 | office | 89 | private string _url = string.Empty; |
6 | office | 90 | |
21 | office | 91 | private string _username = string.Empty; |
6 | office | 92 | |
93 | #endregion |
||
94 | |||
95 | #region Constructors, Destructors and Finalizers |
||
96 | |||
97 | [UsedImplicitly] |
||
98 | public Server() |
||
99 | { |
||
100 | } |
||
101 | |||
14 | office | 102 | public Server(string name, string url, string username, string password) : this() |
6 | office | 103 | { |
104 | Name = name; |
||
12 | office | 105 | Url = url; |
6 | office | 106 | Username = username; |
107 | Password = password; |
||
108 | } |
||
109 | |||
110 | #endregion |
||
111 | } |
||
112 | } |