-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathScsModuleModel.cs
More file actions
77 lines (57 loc) · 2.35 KB
/
ScsModuleModel.cs
File metadata and controls
77 lines (57 loc) · 2.35 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
namespace tds2scs
{
internal class ScsModuleModel
{
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Rule
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("allowedPushOperations", NullValueHandling = NullValueHandling.Ignore)]
public string AllowedPushOperations { get; set; }
[JsonProperty("scope")]
public string Scope { get; set; }
[JsonProperty("alias", NullValueHandling = NullValueHandling.Ignore)]
public string Alias { get; set; }
}
public class Include
{
[JsonProperty("allowedPushOperations", NullValueHandling = NullValueHandling.Ignore)]
public string AllowedPushOperations { get; set; }
[JsonProperty("maxRelativePathLength", NullValueHandling = NullValueHandling.Ignore)]
public string MaxRelativePathLength { get; set; }
[JsonProperty("name")] // Required
public string Name { get; set; }
[JsonProperty("path")] // Required
public string Path { get; set; }
[JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
public string Scope { get; set; }
[JsonProperty("database", NullValueHandling = NullValueHandling.Ignore)]
public string Database { get; set; }
[JsonProperty("rules")]
public List<Rule> Rules { get; set; }
}
public class Items
{
[JsonProperty("includes")]
public List<Include> Includes { get; set; }
[JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)]
public string Path { get; set; }
}
public class Root
{
[JsonProperty("namespace")]
public string @Namespace { get; set; }
[JsonProperty("items")]
public Items Items { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Tags { get; set; }
}
}
}