mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
[SG-648] BEEEP-Refactor DuoApi class to use Httpclient (#2793)
* 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
This commit is contained in:
27
src/Core/Models/Api/Response/Duo/DuoResponseModel.cs
Normal file
27
src/Core/Models/Api/Response/Duo/DuoResponseModel.cs
Normal file
@ -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; }
|
||||
}
|
Reference in New Issue
Block a user