btcpayserver/BTCPayServer/Models/BitpayErrorsModel.cs

40 lines
812 B
C#
Raw Normal View History

2017-09-13 08:47:34 +02:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
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
}