25 namespace Ntp.Analyzer.Objects
37 int id,
int stratum,
string country,
38 string name, IPAddress address,
string v6Address,
39 bool? useDns,
bool? poolMember,
string location,
40 string displayLocation,
string organization,
string geo,
string server,
41 string serviceArea,
string accessDetails,
string accessPolicy,
42 bool? notification,
string autoKey,
string symKey,
string symUrl,
43 string contact,
string providerPage,
string providerUrl, DateTime updated)
50 V6Address = Scrub(v6Address);
52 this.poolMember = poolMember;
54 DisplayLocation = displayLocation;
55 Organization = Scrub(organization);
59 ServiceArea = serviceArea;
60 AccessDetails = accessDetails;
61 AccessPolicy = Scrub(accessPolicy);
62 this.notification = notification;
63 AutoKey = Scrub(autoKey);
64 SymKey = Scrub(symKey);
65 SymUrl = Scrub(symUrl);
67 ProviderPage = providerPage;
68 ProviderUrl = providerUrl;
76 public override int Stratum {
get; }
78 public override string Country {
get; }
80 public override string Name {
get; }
82 public override IPAddress Address {
get; }
84 public override string V6Address {
get; }
86 public override bool ShouldUseDns => useDns ??
false;
88 public override bool IsPoolMember => poolMember ??
false;
90 public override string Location {
get; }
92 public override string DisplayLocation {
get; }
94 public override string Organization {
get; }
96 public override string Geo {
get; }
98 public override string Server {
get; }
100 public override string ServiceArea {
get; }
102 public override string AccessPolicy {
get; }
104 public override string AccessDetails {
get; }
106 public override bool ShouldNotify => notification ??
false;
108 public override string AutoKey {
get; }
110 public override string SymKey {
get; }
112 public override string SymUrl {
get; }
114 public override string Contact {
get; }
116 public override string ProviderPage {
get; }
118 public override string ProviderUrl {
get; }
120 public override DateTime Updated {
get; }
122 private static string Scrub(
string input)
124 if (input == null || input.Trim() ==
string.Empty)
readonly bool notification
static string Scrub(string input)
CalgaryTimeServer(string name, IPAddress address, int orgId)
CalgaryTimeServer(int id, int stratum, string country, string name, IPAddress address, string v6Address, bool?useDns, bool?poolMember, string location, string displayLocation, string organization, string geo, string server, string serviceArea, string accessDetails, string accessPolicy, bool?notification, string autoKey, string symKey, string symUrl, string contact, string providerPage, string providerUrl, DateTime updated)