-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApiLayerManifest.cs
More file actions
60 lines (42 loc) · 1.92 KB
/
ApiLayerManifest.cs
File metadata and controls
60 lines (42 loc) · 1.92 KB
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 Newtonsoft.Json;
namespace SLZ.XRDoctor;
public sealed class ApiLayerManifest {
[JsonProperty("file_format_version", Required = Required.Always)]
public string FileFormatVersion { get; private set; } = null!;
[JsonProperty("api_layer", Required = Required.Always)]
public ApiLayer ApiLayer { get; private set; } = null!;
[JsonConstructor]
public ApiLayerManifest() { }
}
public sealed class ApiLayer {
[JsonProperty("name", Required = Required.Always)]
public string Name { get; private set; } = null!;
[JsonProperty("library_path", Required = Required.Always)]
public string LibraryPath { get; private set; } = null!;
[JsonProperty("api_version", Required = Required.Always)]
public string ApiVersion { get; private set; } = null!;
[JsonProperty("implementation_version", Required = Required.Always)]
public string ImplementationVersion { get; private set; } = null!;
[JsonProperty("description", Required = Required.Always)]
public string Description { get; private set; } = null!;
[JsonProperty("functions")]
public Dictionary<string, string> Functions { get; private set; } = null!;
[JsonProperty("instance_extensions")]
public List<InstanceExtension> InstanceExtensions { get; private set; } = null!;
[JsonProperty("disable_environment")]
public string DisableEnvironment { get; private set; } = null!;
[JsonProperty("enable_environment")]
public string EnableEnvironment { get; private set; } = null!;
[JsonConstructor]
public ApiLayer() { }
}
public sealed class InstanceExtension {
[JsonProperty("name")]
public string Name { get; private set; } = null!;
[JsonProperty("extension_version")]
public object ExtensionVersion { get; private set; } = null!;
[JsonProperty("entrypoints")]
public List<string> Entrypoints { get; private set; } = null!;
[JsonConstructor]
public InstanceExtension() { }
}