-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathRestRequestOptions.cs
More file actions
33 lines (31 loc) · 1.22 KB
/
Copy pathRestRequestOptions.cs
File metadata and controls
33 lines (31 loc) · 1.22 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
namespace BytecodeApi.Rest;
/// <summary>
/// Represents a set of options for REST requests.
/// </summary>
public sealed class RestRequestOptions
{
/// <summary>
/// Gets or sets a value specifying the format that is used to convert <see cref="DateTime" /> values.
/// <para>The default value is "yyyy-MM-ddTHH:mm:sszzz".</para>
/// </summary>
public string QueryParameterDateTimeFormat { get; set; }
/// <summary>
/// Gets or sets a value specifying the format that is used to convert <see cref="DateOnly" /> values.
/// <para>The default value is "yyyy-MM-dd".</para>
/// </summary>
public string QueryParameterDateOnlyFormat { get; set; }
/// <summary>
/// Gets or sets a value specifying the format that is used to convert <see cref="TimeOnly" /> values.
/// <para>The default value is "HH:mm:ss".</para>
/// </summary>
public string QueryParameterTimeOnlyFormat { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="RestRequestOptions" /> class with default options.
/// </summary>
public RestRequestOptions()
{
QueryParameterDateTimeFormat = "yyyy-MM-ddTHH:mm:sszzz";
QueryParameterDateOnlyFormat = "yyyy-MM-dd";
QueryParameterTimeOnlyFormat = "HH:mm:ss";
}
}