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