mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
* Add crowdfund app create endpoint * replace DateTimeJsonConverter with NBitcoin.JsonConverters.DateTimeToUnixTimeConverter * Use DateTimeOffset instead of DateTime * Use array instead of CSV * update "startDate" and "endDate" docs definition * update docs
26 lines
665 B
C#
26 lines
665 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class AppDataBase
|
|
{
|
|
public string Id { get; set; }
|
|
public string AppType { get; set; }
|
|
public string Name { get; set; }
|
|
public string StoreId { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset Created { get; set; }
|
|
}
|
|
|
|
public class PointOfSaleAppData : AppDataBase
|
|
{
|
|
// We can add POS specific things here later
|
|
}
|
|
|
|
public class CrowdfundAppData : AppDataBase
|
|
{
|
|
// We can add Crowdfund specific things here later
|
|
}
|
|
}
|