Winify – Blame information for rev 59
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
30 | office | 1 | using System.ComponentModel; |
2 | using System.Runtime.CompilerServices; |
||
3 | using System.Xml.Serialization; |
||
4 | using Configuration.Annotations; |
||
5 | |||
6 | namespace Configuration |
||
7 | { |
||
8 | [XmlRoot(Namespace = "urn:winify-configuration-schema", ElementName = "Configuration")] |
||
9 | public class Configuration : INotifyPropertyChanged |
||
10 | { |
||
11 | private bool _launchOnBoot; |
||
44 | office | 12 | private bool _ignoreSelfSignedCertificates; |
50 | office | 13 | private Proxy _proxy = new Proxy(); |
55 | office | 14 | private int _toastDuration = 5000; |
15 | private bool _infiniteToastDuration; |
||
59 | office | 16 | private int _retrievePastNotificationHours; |
30 | office | 17 | |
18 | public bool LaunchOnBoot |
||
19 | { |
||
20 | get => _launchOnBoot; |
||
21 | set |
||
22 | { |
||
23 | if (value == _launchOnBoot) return; |
||
24 | _launchOnBoot = value; |
||
25 | OnPropertyChanged(); |
||
26 | } |
||
27 | } |
||
28 | |||
44 | office | 29 | public bool IgnoreSelfSignedCertificates |
30 | { |
||
31 | get => _ignoreSelfSignedCertificates; |
||
32 | set |
||
33 | { |
||
34 | if (value == _ignoreSelfSignedCertificates) return; |
||
35 | _ignoreSelfSignedCertificates = value; |
||
36 | OnPropertyChanged(); |
||
37 | } |
||
38 | } |
||
39 | |||
55 | office | 40 | public int ToastDuration |
41 | { |
||
42 | get => _toastDuration; |
||
43 | set |
||
44 | { |
||
45 | if (value == _toastDuration) return; |
||
46 | _toastDuration = value; |
||
47 | OnPropertyChanged(); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | public bool InfiniteToastDuration |
||
52 | { |
||
53 | get => _infiniteToastDuration; |
||
54 | set |
||
55 | { |
||
56 | if (value == _infiniteToastDuration) return; |
||
57 | _infiniteToastDuration = value; |
||
58 | OnPropertyChanged(); |
||
59 | } |
||
60 | } |
||
61 | |||
59 | office | 62 | public int RetrievePastNotificationHours |
63 | { |
||
64 | get => _retrievePastNotificationHours; |
||
65 | set |
||
66 | { |
||
67 | if (value == _retrievePastNotificationHours) return; |
||
68 | _retrievePastNotificationHours = value; |
||
69 | OnPropertyChanged(); |
||
70 | } |
||
71 | } |
||
72 | |||
50 | office | 73 | public Proxy Proxy |
74 | { |
||
75 | get => _proxy; |
||
76 | set |
||
77 | { |
||
78 | if (Equals(value, _proxy)) return; |
||
79 | _proxy = value; |
||
80 | OnPropertyChanged(); |
||
81 | } |
||
82 | } |
||
83 | |||
84 | [UsedImplicitly] |
||
85 | public Configuration() |
||
86 | { |
||
87 | |||
88 | } |
||
89 | |||
30 | office | 90 | public event PropertyChangedEventHandler PropertyChanged; |
91 | |||
92 | [NotifyPropertyChangedInvocator] |
||
93 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
94 | { |
||
95 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
96 | } |
||
97 | } |
||
98 | } |