2017-09-13 08:47:34 +02:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models
|
|
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public class BitpayErrorsModel
|
|
|
|
|
{
|
|
|
|
|
public BitpayErrorsModel()
|
|
|
|
|
{
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
}
|
|
|
|
|
public BitpayErrorsModel(BitpayHttpException ex)
|
|
|
|
|
{
|
|
|
|
|
Error = ex.Message;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +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
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public class BitpayErrorModel
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("error")]
|
|
|
|
|
public string Error
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
}
|