SystemProperties.cs
4.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
using Contentful.Core.Models.Management;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Contentful.Core.Models
{
/// <summary>
/// Encapsulates system managed metadata returned by the Contentful APIs.
/// </summary>
public class SystemProperties
{
/// <summary>
/// The unique identifier of the resource.
/// </summary>
public string Id { get; set; }
/// <summary>
/// The type of link. Will be null for non link types.
/// </summary>
public string LinkType { get; set; }
/// <summary>
/// The type of the resource.
/// </summary>
public string Type { get; set; }
/// <summary>
/// The published version of the resource. Will be null for non-versioned types.
/// </summary>
public int? Revision { get; set; }
/// <summary>
/// The current version of the resource. Will only be present for management API calls.
/// </summary>
public int? Version { get; set; }
/// <summary>
/// The date and time the resource was created. Will be null when not applicable, e.g. for arrays.
/// </summary>
public DateTime? CreatedAt { get; set; }
/// <summary>
/// The link to the user that created this content. Will only be present for management API call.
/// </summary>
public User CreatedBy { get; set; }
/// <summary>
/// The date and time the resource was last updated. Will be null when not applicable or when the resource has never been updated.
/// </summary>
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// The link to the user that last updated this content. Will only be present for management API call.
/// </summary>
public User UpdatedBy { get; set; }
/// <summary>
/// The date and time the resource was deleted. This field will only be present for <seealso cref="SyncResult"/> deleted items.
/// </summary>
public DateTime? DeletedAt { get; set; }
/// <summary>
/// The locale of the resource. Will only have a value for <seealso cref="Asset"/> and <seealso cref="Entry{T}"/> resource types.
/// </summary>
public string Locale { get; set; }
/// <summary>
/// The <seealso cref="ContentType"/> of the resource. Only applicable for <seealso cref="Entry{T}"/> resource types.
/// </summary>
public ContentType ContentType { get; set; }
/// <summary>
/// The <seealso cref="Space"/> of the resource. Only applicable for <seealso cref="Entry{T}"/>, <seealso cref="Asset"/> and <seealso cref="ContentType"/> resource types.
/// </summary>
public Space Space { get; set; }
/// <summary>
/// The number of times the resource has been published.
/// </summary>
public int? PublishedCounter { get; set; }
/// <summary>
/// The published version of the resource. Will only be present for management API calls.
/// </summary>
public int? PublishedVersion { get; set; }
/// <summary>
/// The user that published the resource. Will only be present for management API calls.
/// </summary>
public User PublishedBy { get; set; }
/// <summary>
/// The number of times the resource has been published. Will only be present for management API calls.
/// </summary>
public int? PublishCounter { get; set; }
/// <summary>
/// When the resource was first published. Will only be present for management API calls.
/// </summary>
public DateTime? FirstPublishedAt { get; set; }
/// <summary>
/// The date and time the resource was archived. Will only be present for management API calls.
/// </summary>
public DateTime? ArchivedAt { get; set; }
/// <summary>
/// The version that is currently archived. Will only be present for management API calls.
/// </summary>
public int? ArchivedVersion { get; set; }
/// <summary>
/// The link to the user that last archived this content. Will only be present for management API call.
/// </summary>
public User ArchivedBy { get; set; }
}
}