btcpayserver/BTCPayServer/Models/BitpayErrorsModel.cs

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;
}
}
}