btcpayserver/BTCPayServer/Models/BitpayErrorsModel.cs

37 lines
742 B
C#
Raw Normal View History

2020-06-28 10:55:27 +02:00
using Newtonsoft.Json;
2017-09-13 08:47:34 +02:00
namespace BTCPayServer.Models
{
public class BitpayErrorsModel
{
public BitpayErrorsModel()
{
2017-09-13 08:47:34 +02:00
}
public BitpayErrorsModel(BitpayHttpException ex)
{
Error = ex.Message;
}
2017-09-13 08:47:34 +02:00
[JsonProperty("errors", DefaultValueHandling = DefaultValueHandling.Ignore)]
public BitpayErrorModel[] Errors
{
get; set;
}
[JsonProperty("error", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Error
{
get; set;
}
}
2017-09-13 08:47:34 +02:00
public class BitpayErrorModel
{
[JsonProperty("error")]
public string Error
{
get; set;
}
}
2017-09-13 08:47:34 +02:00
}