mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
37 lines
742 B
C#
37 lines
742 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Models
|
|
{
|
|
public class BitpayErrorsModel
|
|
{
|
|
public BitpayErrorsModel()
|
|
{
|
|
|
|
}
|
|
public BitpayErrorsModel(BitpayHttpException ex)
|
|
{
|
|
Error = ex.Message;
|
|
}
|
|
|
|
[JsonProperty("errors", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public BitpayErrorModel[] Errors
|
|
{
|
|
get; set;
|
|
}
|
|
[JsonProperty("error", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public string Error
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
|
|
public class BitpayErrorModel
|
|
{
|
|
[JsonProperty("error")]
|
|
public string Error
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|