mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
38 lines
707 B
C#
38 lines
707 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace BTCPayServer.Models
|
|
{
|
|
public class DataWrapper
|
|
{
|
|
public static DataWrapper<T> Create<T>(T obj)
|
|
{
|
|
return new DataWrapper<T>(obj);
|
|
}
|
|
}
|
|
public class DataWrapper<T>
|
|
{
|
|
public DataWrapper()
|
|
{
|
|
|
|
}
|
|
public DataWrapper(T data)
|
|
{
|
|
Data = data;
|
|
}
|
|
|
|
[JsonProperty("facade", NullValueHandling = NullValueHandling.Ignore)]
|
|
public string Facade
|
|
{
|
|
get; set;
|
|
}
|
|
[JsonProperty("data")]
|
|
public T Data
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|