Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TasksCapabilities.cs
2
4{
8 public class TasksCapabilities
9 {
13 public object? List { get; internal set; }
14
18 public object? Cancel { get; internal set; }
19
23 public TasksRequestsCapabilities? Requests { get; internal set; }
24
31 public static bool TryParse(Dictionary<string, object> Generic,
32 out TasksCapabilities Typed)
33 {
35
36 if (Generic.TryGetValue("list", out object? Obj))
37 Result.List = Obj;
38
39 if (Generic.TryGetValue("cancel", out Obj))
40 Result.Cancel = Obj;
41
42 if (Generic.TryGetValue("requests", out Obj) &&
43 Obj is Dictionary<string, object> Requests &&
45 {
46 Result.Requests = RequestsParsed;
47 }
48
49 Typed = Result;
50 return true;
51 }
52 }
53}
TasksRequestsCapabilities? Requests
Specifies which request types can be augmented with tasks.
object? List
Whether this client supports tasks/list.
object? Cancel
Whether this client supports tasks/cancel.
static bool TryParse(Dictionary< string, object > Generic, out TasksCapabilities Typed)
Tries to parse a generic structure into a typed structure.
static bool TryParse(Dictionary< string, object > Generic, out TasksRequestsCapabilities Typed)
Tries to parse a generic structure into a typed structure.