-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathChallenge.cs
67 lines (61 loc) · 1.61 KB
/
Challenge.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
64
65
66
67
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace Certes.Acme.Resource
{
/// <summary>
/// Represents a challenge for <see cref="Identifier"/>.
/// </summary>
public class Challenge
{
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>
/// The type.
/// </value>
[JsonProperty("type")]
public string Type { get; set; }
/// <summary>
/// Gets or sets the URL.
/// </summary>
/// <value>
/// The URL.
/// </value>
[JsonProperty("url")]
public Uri Url { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>
/// The status.
/// </value>
[JsonProperty("status")]
public ChallengeStatus? Status { get; set; }
/// <summary>
/// Gets or sets the validation time.
/// </summary>
/// <value>
/// The validation time.
/// </value>
[JsonProperty("validated")]
public DateTimeOffset? Validated { get; set; }
/// <summary>
/// Gets or sets the error.
/// Only if the status is invalid
/// </summary>
/// <value>
/// The errors.
/// </value>
[JsonProperty("error")]
public AcmeError Error { get; set; }
/// <summary>
/// Gets or sets the token.
/// </summary>
/// <value>
/// The token.
/// </value>
[JsonProperty("token")]
public string Token { get; set; }
}
}