-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathContentModelling.cs
More file actions
55 lines (41 loc) · 1.63 KB
/
Copy pathContentModelling.cs
File metadata and controls
55 lines (41 loc) · 1.63 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
using System.Collections.Generic;
using System.Linq;
using Contentstack.Management.Core.Models.Fields;
using Newtonsoft.Json;
namespace Contentstack.Management.Core.Models
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class ContentModelling
{
[JsonProperty(propertyName: "title")]
public string Title { get; set; }
[JsonProperty(propertyName: "uid")]
public string Uid { get; set; }
[JsonProperty(propertyName: "description")]
public string Description { get; set; }
[JsonProperty(propertyName: "field_rules")]
public List<FieldRules> FieldRules { get; set; }
[JsonProperty(propertyName: "schema")]
public List<Field> Schema { get; set; }
[JsonProperty(propertyName: "global_field_refs")]
public List<GlobalFieldRefs> GlobalFieldRefs { get; set; }
[JsonProperty(propertyName: "options")]
public Option Options { get; set; }
}
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class Option
{
[JsonProperty(propertyName: "title")]
public string Title { get; set; }
[JsonProperty(propertyName: "sub_title")]
public List<string> SubTitle { get; set; }
[JsonProperty(propertyName: "singleton")]
public bool Singleton { get; set; }
[JsonProperty(propertyName: "is_page")]
public bool IsPage { get; set; }
[JsonProperty(propertyName: "url_pattern")]
public string UrlPattern { get; set; }
[JsonProperty(propertyName: "url_prefix")]
public string UrlPrefix { get; set; }
}
}