Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IfDeviceToken.cs
1using System;
2using System.Xml;
3
5{
7 {
8 public IfDeviceToken()
9 : base()
10 {
11 }
12
13 public override bool? Evaluate(Context Context)
14 {
15 if (Context.DeviceTokens is null || Array.IndexOf(Context.DeviceTokens, this.Value) < 0)
16 return null;
17
18 return base.Evaluate(Context);
19
20 }
21
26 public override void Export(XmlWriter Output)
27 {
28 Output.WriteStartElement("IfDeviceToken", RuleNamespace);
29 Output.WriteAttributeString("value", this.Value);
30 base.ExportChildren(Output);
31 Output.WriteEndElement();
32 }
33 }
34}
override void Export(XmlWriter Output)
Exports the rule.
override? bool Evaluate(Context Context)
Tries to evaluate the rule.
const string RuleNamespace
http://waher.se/Schema/Provisioning/Rules.xsd
Definition: Rule.cs:16