Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmppOperation.cs
1using System;
2using System.Threading.Tasks;
3using System.Xml;
5
7{
11 public abstract class XmppOperation : ActionNode
12 {
13 private To to;
14 private Notes.Content content;
15
20 : base()
21 {
22 }
23
27 public To To => this.to;
28
32 public Notes.Content Content => this.content;
33
38 public override async Task Parse(XmlElement Xml)
39 {
40 await base.Parse(Xml);
41
43 new Type[]
44 {
45 typeof(To),
46 typeof(Notes.Content)
47 },
48 new bool[]
49 {
50 true,
51 true
52 });
53 }
54
58 protected override void OnChildNodesUpdated()
59 {
60 base.OnChildNodesUpdated();
61
62 this.to = this.GetValueElement<To>();
63 this.content = this.GetValueElement<Notes.Content>();
64 }
65 }
66}
Abstract base class for State-Machine action nodes.
Definition: ActionNode.cs:9
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
override void OnChildNodesUpdated()
Method called whenever ChildNodes is updated.
Defines to whom a payment (or message) is sent.
Definition: To.cs:9
void ConvertValueAttributesToElements(XmlElement Xml, Type[] ValueTypes, bool[] Required)
Converts value attributes to parsed elements. The XML definition has to be parsed before,...