-
Notifications
You must be signed in to change notification settings - Fork 1
/
AutogenConfig.cs
61 lines (51 loc) · 1.23 KB
/
AutogenConfig.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
49
50
51
52
53
54
55
56
57
58
59
60
using System;
namespace Autogen
{
public class AutogenConfig
{
[Serializable]
public class Configuration
{
public string name { get; set; }
public Container[] containers { get; set; }
public Data[] data { get; set; }
public View[] views { get; set; }
}
[Serializable]
public class Container
{
public string name { get; set; }
public View[] views { get; set; }
}
[Serializable]
public class Data
{
public float min { get; set; }
public float max { get; set; }
public float step { get; set; }
public float value { get; set; }
public string units { get; set; }
public string[] enumeration { get; set; }
public DataReference reference { get; set; }
}
[Serializable]
public class View
{
public string name { get; set; }
public ViewType type { get; set; }
public int[] references { get; set; }
}
[Serializable]
public class ViewType
{
public string component { get; set; }
public string variant { get; set; }
}
[Serializable]
public class DataReference
{
public string device { get; set; }
public string name { get; set; }
}
}
}