forked from iotmodels/MQTTnet.Extensions.MultiCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdtmi_rido_pnp_memmon-1.g.cs
48 lines (39 loc) · 1.36 KB
/
dtmi_rido_pnp_memmon-1.g.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// <auto-generated/>
using MQTTnet.Client;
using MQTTnet.Extensions.MultiCloud;
using System.Runtime.CompilerServices;
namespace dtmi_rido_pnp_memmon;
public interface Imemmon
{
public const string ModelId = "dtmi:rido:pnp:memmon;1";
public IMqttClient Connection { get; }
public string InitialState { get; }
public IReadOnlyProperty<DateTime> Property_started { get; set; }
public IWritableProperty<bool> Property_enabled { get; set; }
public IWritableProperty<int> Property_interval { get; set; }
public ITelemetry<double> Telemetry_workingSet { get; set; }
public ICommand<Cmd_getRuntimeStats_Request, Cmd_getRuntimeStats_Response> Command_getRuntimeStats { get; set; }
}
public enum DiagnosticsMode
{
minimal = 0,
complete = 1,
full = 2
}
public class Cmd_getRuntimeStats_Request : IBaseCommandRequest<Cmd_getRuntimeStats_Request>
{
public DiagnosticsMode DiagnosticsMode { get; set; }
public Cmd_getRuntimeStats_Request DeserializeBody(string payload)
{
return new Cmd_getRuntimeStats_Request()
{
DiagnosticsMode = Json.FromString<DiagnosticsMode>(payload)
};
}
}
public class Cmd_getRuntimeStats_Response : IBaseCommandResponse
{
//ReponsePayload = new Dictionary<string, string>();
public int Status { get; set; }
public object ReponsePayload { get; set; }
}