mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
40 lines
812 B
C#
40 lines
812 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|