Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ElicitationCapabilities.cs
1
using
System.Collections.Generic
;
2
3
namespace
Waher.Networking.HTTP.Mcp.Model.Client
4
{
8
public
class
ElicitationCapabilities
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,
27
out
ElicitationCapabilities
Typed)
28
{
29
ElicitationCapabilities
Result =
new
ElicitationCapabilities
();
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
}
Waher.Networking.HTTP.Mcp.Model.Client.ElicitationCapabilities
Elicitation capabilities structure
Definition:
ElicitationCapabilities.cs:9
Waher.Networking.HTTP.Mcp.Model.Client.ElicitationCapabilities.TryParse
static bool TryParse(Dictionary< string, object > Generic, out ElicitationCapabilities Typed)
Tries to parse a generic structure into a typed structure.
Definition:
ElicitationCapabilities.cs:26
Waher.Networking.HTTP.Mcp.Model.Client.ElicitationCapabilities.Form
bool Form
Form
Definition:
ElicitationCapabilities.cs:13
Waher.Networking.HTTP.Mcp.Model.Client.ElicitationCapabilities.Url
bool Url
URL
Definition:
ElicitationCapabilities.cs:18
System.Collections.Generic
Definition:
ImplTypes.g.cs:4970
Waher.Networking.HTTP.Mcp.Model.Client
Definition:
ClientCapabilities.cs:4
IoTGateway
Networking
Waher.Networking.HTTP.Mcp
Model
Client
ElicitationCapabilities.cs
Generated by
1.9.5