/
Batch.cs
63 lines (53 loc) · 1.83 KB
/
Batch.cs
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
using System;
using Newtonsoft.Json;
namespace MailChimp.Net.Core;
public class Batch
{
/// <summary>
/// A string that uniquely identifies this batch request.
/// </summary>
public string Id { get; set; }
/// <summary>
/// The status of the batch call.
/// Possible Values:
/// pending - started - finished
/// </summary>
public string Status { get; set; }
/// <summary>
/// The total number of operations to complete as part of this batch request.
/// For GET requests requiring pagination, each page counts as a separate operation.
/// </summary>
[JsonProperty("total_operations")]
public int TotalOperations { get; set; }
[System.ComponentModel.Browsable(false), Obsolete("Spelling corrected to FinishedOperations"), JsonIgnore]
public int FinishedOperpations
{
get => FinishedOperations;
set => FinishedOperations = value;
}
/// <summary>
/// The number of completed operations. This includes operations that returned an error.
/// </summary>
[JsonProperty("finished_operations")]
public int FinishedOperations { get; set; }
/// <summary>
/// The number of completed operations that returned an error.
/// </summary>
[JsonProperty("errored_operations")]
public int ErroredOperations { get; set; }
/// <summary>
/// The time and date when the server received the batch request.
/// </summary>
[JsonProperty("submitted_at")]
public DateTime? SubmittedAt { get; set; }
/// <summary>
/// The time and date when all operations in the batch request completed.
/// </summary>
[JsonProperty("completed_at")]
public DateTime? CompletedAt { get; set; }
/// <summary>
/// The URL of the gzipped archive of the results of all the operations.
/// </summary>
[JsonProperty("response_body_url")]
public string ResponseBodyUrl { get; set; }
}