Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CreationAttributesEventArgs.cs
3
5{
10 {
11 private readonly string currency;
12 private readonly string trustProviderId;
13 private readonly decimal commission;
14
20 : base(e)
21 {
22 if (e.Ok)
23 {
24 this.currency = XML.Attribute(e.FirstElement, "currency");
25 this.commission = XML.Attribute(e.FirstElement, "commission", 0m);
26 this.trustProviderId = XML.Attribute(e.FirstElement, "trustProvider");
27 }
28 else
29 {
30 this.currency = null;
31 this.commission = 0;
32 this.trustProviderId = null;
33 }
34 }
35
39 public string Currency => this.currency;
40
44 public string TrustProviderId => this.trustProviderId;
45
49 public decimal Commission => this.commission;
50 }
51}
Event arguments for callback methods to token creation attributes queries.
string TrustProviderId
Legal ID used by the trust provider to sign contracts.
CreationAttributesEventArgs(IqResultEventArgs e)
Event arguments for callback methods to token queries.
decimal Commission
Minimum commission (in %) expected by the trust provider, in order to sign contract.
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Event arguments for responses to IQ queries.
bool Ok
If the response is an OK result response (true), or an error response (false).
XmlElement FirstElement
First child element of the Response element.