-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SG-648] BEEEP-Refactor DuoApi class to use Httpclient (#2691)
* Started work on refactoring class * Added duo api respons model * Made httpclient version of APICall * Added more properties to response model * Refactored duo api class to use httpclient * Removed unuseful comments * Fixed lint formatting
- Loading branch information
1 parent
38336dd
commit f11c58e
Showing
4 changed files
with
59 additions
and
63 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
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,27 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Bit.Core.Models.Api.Response.Duo; | ||
|
||
public class DuoResponseModel | ||
{ | ||
[JsonPropertyName("stat")] | ||
public string Stat { get; set; } | ||
|
||
[JsonPropertyName("code")] | ||
public int? Code { get; set; } | ||
|
||
[JsonPropertyName("message")] | ||
public string Message { get; set; } | ||
|
||
[JsonPropertyName("message_detail")] | ||
public string MessageDetail { get; set; } | ||
|
||
[JsonPropertyName("response")] | ||
public Response Response { get; set; } | ||
} | ||
|
||
public class Response | ||
{ | ||
[JsonPropertyName("time")] | ||
public int Time { get; set; } | ||
} |
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