WebHookCallDetails.cs
1.63 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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Models.Management
{
/// <summary>
/// Represents the details of a webhook call.
/// </summary>
public class WebhookCallDetails : IContentfulResource
{
/// <summary>
/// Common system managed metadata properties.
/// </summary>
[JsonProperty("sys", NullValueHandling = NullValueHandling.Ignore)]
public SystemProperties SystemProperties { get; set; }
/// <summary>
/// The http status code of the call.
/// </summary>
public int StatusCode { get; set; }
/// <summary>
/// The errors that occurred, if any.
/// </summary>
public List<string> Errors { get; set; }
/// <summary>
/// The type of event that triggered the webhook
/// </summary>
public string EventType { get; set; }
/// <summary>
/// The url that was called.
/// </summary>
public string Url { get; set; }
/// <summary>
/// The date and time the request was made.
/// </summary>
public DateTime? RequestAt { get; set; }
/// <summary>
/// The date and time the response was received.
/// </summary>
public DateTime? ResponseAt { get; set; }
/// <summary>
/// Details of the response.
/// </summary>
public WebhookResponse Response { get; set; }
/// <summary>
/// Details of the request.
/// </summary>
public WebhookRequest Request { get; set; }
}
}