-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Fischer
committed
Nov 9, 2023
1 parent
cc5310e
commit 96b0337
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace BytecodeApi.Rest; | ||
|
||
/// <summary> | ||
/// Represents a set of formatting options for a <see cref="RestClient" /> instance. | ||
/// </summary> | ||
public sealed class RestClientOptions | ||
{ | ||
/// <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="RestClientOptions" /> class with default formatting options. | ||
/// </summary> | ||
public RestClientOptions() | ||
{ | ||
QueryParameterDateTimeFormat = "yyyy-MM-ddTHH:mm:sszzz"; | ||
QueryParameterDateOnlyFormat = "yyyy-MM-dd"; | ||
QueryParameterTimeOnlyFormat = "HH:mm:ss"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters