Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ElicitationCapabilities.cs
2
4{
9 {
13 public bool Form { get; internal set; }
14
18 public bool Url { get; internal set; }
19
26 public static bool TryParse(Dictionary<string, object> Generic,
28 {
30
31 if (Generic.TryGetValue("form", out object? Obj))
32 Result.Form = !(Obj is null);
33
34 if (Generic.TryGetValue("url", out Obj))
35 Result.Url = !(Obj is null);
36
37 if (!Result.Form && !Result.Url)
38 Result.Form = true;
39
40 Typed = Result;
41 return true;
42 }
43 }
44}
static bool TryParse(Dictionary< string, object > Generic, out ElicitationCapabilities Typed)
Tries to parse a generic structure into a typed structure.