Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PeerStatus.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
6
8{
12 public class PeerStatus
13 {
14 private string fullJid = string.Empty;
15 private string bareJid = string.Empty;
16 private string capabilitiesVersion = string.Empty;
17 private string capabilitiesNode = string.Empty;
18 private string capabilitiesFunction = string.Empty;
19 private string requestingCapabilitiesVersion = string.Empty;
20 private string requestingCapabilitiesNode = string.Empty;
21 private string requestingCapabilitiesFunction = string.Empty;
22 private string[] features = null;
23 private volatile int synchCounter = 0;
24 private bool isNeuroLedger = false;
25 private bool isSynchronizing = false;
26
30 public PeerStatus()
31 {
32 }
33
37 public string FullJid
38 {
39 get => this.fullJid;
40 set => this.fullJid = value;
41 }
42
46 public string BareJid
47 {
48 get => this.bareJid;
49 set => this.bareJid = value;
50 }
51
55 public string CapabilitiesVersion
56 {
57 get => this.capabilitiesVersion;
58 set => this.capabilitiesVersion = value;
59 }
60
64 public string CapabilitiesNode
65 {
66 get => this.capabilitiesNode;
67 set => this.capabilitiesNode = value;
68 }
69
74 {
75 get => this.capabilitiesFunction;
76 set => this.capabilitiesFunction = value;
77 }
78
83 {
84 get => this.requestingCapabilitiesVersion;
85 set => this.requestingCapabilitiesVersion = value;
86 }
87
92 {
93 get => this.requestingCapabilitiesNode;
94 set => this.requestingCapabilitiesNode = value;
95 }
96
101 {
102 get => this.requestingCapabilitiesFunction;
103 set => this.requestingCapabilitiesFunction = value;
104 }
105
109 public string[] Features
110 {
111 get => this.features;
112 set => this.features = value;
113 }
114
118 public bool IsNeuroLedger
119 {
120 get => this.isNeuroLedger;
121 set => this.isNeuroLedger = value;
122 }
123
127 public bool IsSynchronizing
128 {
129 get => this.isSynchronizing;
130 set => this.isSynchronizing = value;
131 }
132
136 public int SynchCounter
137 {
138 get => this.synchCounter;
139 set => this.synchCounter = value;
140 }
141 }
142}
Contains information about current synchronization status for a peer in the network.
Definition: PeerStatus.cs:13
int SynchCounter
Synchronization Counter
Definition: PeerStatus.cs:137
bool IsSynchronizing
If a synchronizating process is underway.
Definition: PeerStatus.cs:128
string RequestingCapabilitiesFunction
Entity RequestingCapabilities Function being requested
Definition: PeerStatus.cs:101
PeerStatus()
Contains information about current synchronization status for a peer in the network.
Definition: PeerStatus.cs:30
string RequestingCapabilitiesNode
Entity RequestingCapabilities Node being requested
Definition: PeerStatus.cs:92
string CapabilitiesFunction
Entity Capabilities Function
Definition: PeerStatus.cs:74
string RequestingCapabilitiesVersion
Entity Capabilities Version being requested
Definition: PeerStatus.cs:83
bool IsNeuroLedger
If the peer is a Neuro-Ledger node.
Definition: PeerStatus.cs:119
string CapabilitiesVersion
Entity Capabilities Version
Definition: PeerStatus.cs:56
string CapabilitiesNode
Entity Capabilities Node
Definition: PeerStatus.cs:65