NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Objects.Peer Class Reference
Inheritance diagram for Ntp.Analyzer.Objects.Peer:
Collaboration diagram for Ntp.Analyzer.Objects.Peer:

Public Member Functions

 Peer (int id, string name, string ip, TimeServer server)
 
 Peer (string name, string ip, TimeServer server)
 
- Public Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
override bool Equals (object obj)
 
override int GetHashCode ()
 
void SetId (int id)
 Sets the identifier after the object have been stored in persistent storage. More...
 
override string ToString ()
 Returns a string that represents the current PersistentObject. More...
 

Public Attributes

override string DisplayName => string.IsNullOrEmpty(Server?.Name) ? Name : Server.Name
 
int OrgId => Server?.Id
 Gets the server identifier as specified on support.ntp.org. More...
 
- Public Attributes inherited from Ntp.Analyzer.Objects.NamedObject
virtual string DisplayName => Name
 

Properties

string Ip [get, set]
 
TimeServer Server [get, set]
 
- Properties inherited from Ntp.Analyzer.Objects.NamedObject
string Name [get, set]
 
- Properties inherited from Ntp.Analyzer.Objects.PersistentObject
int Id [get, private set]
 Gets the identifier. More...
 
bool NewObject [get, protected set]
 Gets a value indicating whether this PersistentObject is a new object which does not yet exists in the peristing storage (database etc). More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Objects.NamedObject
 NamedObject (string name)
 
 NamedObject (int id, string name)
 
- Protected Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
 PersistentObject (int id)
 Initializes a new instance of the PersistentObject class. More...
 
 PersistentObject ()
 Initializes a new instance of the PersistentObject class. More...
 

Detailed Description

Definition at line 24 of file Peer.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Objects.Peer.Peer ( int  id,
string  name,
string  ip,
TimeServer  server 
)
inline

Definition at line 26 of file Peer.cs.

27  : base(id, name)
28  {
29  Ip = ip;
30  Server = server;
31  }
TimeServer Server
Definition: Peer.cs:42
Ntp.Analyzer.Objects.Peer.Peer ( string  name,
string  ip,
TimeServer  server 
)
inline

Definition at line 33 of file Peer.cs.

34  : base(name)
35  {
36  Ip = ip;
37  Server = server;
38  }
TimeServer Server
Definition: Peer.cs:42

Member Data Documentation

override string Ntp.Analyzer.Objects.Peer.DisplayName => string.IsNullOrEmpty(Server?.Name) ? Name : Server.Name

Definition at line 50 of file Peer.cs.

int Ntp.Analyzer.Objects.Peer.OrgId => Server?.Id

Gets the server identifier as specified on support.ntp.org.

The org identifier.

Definition at line 48 of file Peer.cs.

Referenced by Ntp.Analyzer.Data.Sql.PeerDatabaseMapper.Insert(), and Ntp.Analyzer.Data.Sql.PeerDatabaseMapper.Update().

Property Documentation

TimeServer Ntp.Analyzer.Objects.Peer.Server
getset

Definition at line 42 of file Peer.cs.


The documentation for this class was generated from the following file: