-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGQLModel.cs
More file actions
74 lines (70 loc) · 1.61 KB
/
GQLModel.cs
File metadata and controls
74 lines (70 loc) · 1.61 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
using System;
using Contentstack.Utils.Converters;
using Contentstack.Utils.Interfaces;
using Contentstack.Utils.Models;
using Newtonsoft.Json;
namespace Contentstack.Utils.Tests.Mocks
{
public class GQLModel<T> where T: IEmbeddedObject
{
[Newtonsoft.Json.JsonConverter(typeof(RTEJsonConverter))]
public JsonRTENodes<T> multiplerte { get; set; }
public JsonRTENode<T> singlerte { get; set; }
}
[Newtonsoft.Json.JsonConverter(typeof(RTEJsonConverter))]
public class EntryModel : IEmbeddedEntry
{
[JsonProperty("system.uid")]
public string Uid
{
get;
set;
}
[JsonProperty("system.content_type_uid")]
public string ContentTypeUid
{
get;
set;
}
[JsonProperty("title")]
public string Title
{
get;
set;
}
}
[Newtonsoft.Json.JsonConverter(typeof(RTEJsonConverter))]
public class AssetModel : IEmbeddedAsset
{
[JsonProperty("system.uid")]
public string Uid
{
get;
set;
}
[JsonProperty("system.content_type_uid")]
public string ContentTypeUid
{
get;
set;
}
[JsonProperty("title")]
public string Title
{
get;
set;
}
[JsonProperty("filename")]
public string FileName
{
get;
set;
}
[JsonProperty("url")]
public string Url
{
get;
set;
}
}
}