SyncResult.cs
2.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Contentful.Core.Models
{
/// <summary>
/// Represents the result of a sync operation.
/// </summary>
public class SyncResult
{
/// <summary>
/// Common system managed metadata properties.
/// </summary>
[JsonProperty("sys")]
public SystemProperties SystemProperties { get; set; }
/// <summary>
/// The next URL to call to fetch delta updates between this sync and the next one.
/// </summary>
public string NextSyncUrl { get; set; }
/// <summary>
/// Indicates that there are further results to be fetched in the current sync operation.
/// </summary>
public string NextPageUrl { get; set; }
/// <summary>
/// The <see cref="IEnumerable{T}"/> of <seealso cref="Entry{T}"/> fetched by the sync operation.
/// Note that the entry fields are returned as a dynamic as the data structure potentially contains elements
/// that are not serializable directly to a class. For more information refer to <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/synchronization">the documentation</a>.
/// </summary>
public IEnumerable<Entry<dynamic>> Entries { get; set; }
/// <summary>
/// The <see cref="IEnumerable{T}"/> of <seealso cref="SyncedAsset"/> fetched by the sync operation.
/// Note that the asset fields are returned as a dynamic as the data structure potentially contains elements
/// that are not serializable directly to a class. For more information refer to <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/synchronization">the documentation</a>.
/// </summary>
public IEnumerable<SyncedAsset> Assets { get; set; }
/// <summary>
/// The <see cref="IEnumerable{T}"/> of deleted assets fetched by the sync operation.
/// </summary>
public IEnumerable<SystemProperties> DeletedAssets { get; set; }
/// <summary>
/// The <see cref="IEnumerable{T}"/> of deleted entries fetched by the sync operation.
/// </summary>
public IEnumerable<SystemProperties> DeletedEntries { get; set; }
}
}