File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed
Contentstack.Management.Core/Models Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ using System . Collections . Generic ;
2+ using Contentstack . Management . Core . Utils ;
3+ using Newtonsoft . Json ;
4+
5+ namespace Contentstack . Management . Core . Models
6+ {
7+ [ JsonConverter ( typeof ( NodeJsonConverter ) ) ]
8+ public class Node
9+ {
10+ public string type { get ; set ; }
11+
12+ public IDictionary < string , object > attrs { get ; set ; }
13+
14+ public List < Node > children { get ; set ; }
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class ReleaseItemModel
4343 public string Uid { get ; set ; }
4444
4545 [ JsonProperty ( propertyName : "version" ) ]
46- public string Version { get ; set ; }
46+ public int Version { get ; set ; }
4747
4848 [ JsonProperty ( propertyName : "locale" ) ]
4949 public string Locale { get ; set ; }
Original file line number Diff line number Diff line change 1+ using System ;
2+ using Newtonsoft . Json ;
3+ using Contentstack . Management . Core . Utils ;
4+
5+ namespace Contentstack . Management . Core . Models
6+ {
7+ [ JsonConverter ( typeof ( TextNodeJsonConverter ) ) ]
8+ public class TextNode : Node
9+ {
10+ public bool bold { get ; set ; }
11+ public bool italic { get ; set ; }
12+ public bool underline { get ; set ; }
13+ public bool strikethrough { get ; set ; }
14+ public bool inlineCode { get ; set ; }
15+ public bool subscript { get ; set ; }
16+ public bool superscript { get ; set ; }
17+ public string text { get ; set ; }
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments