mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
The Big Cleanup: Refactor BTCPay internals (#5809)
This commit is contained in:
@@ -43,18 +43,25 @@ namespace BTCPayServer.Plugins.Crowdfund.Models
|
||||
|
||||
public class CrowdfundInfo
|
||||
{
|
||||
public class PaymentStat
|
||||
{
|
||||
public string Label { get; set; }
|
||||
public decimal Percent { get; set; }
|
||||
public bool IsLightning { get; set; }
|
||||
}
|
||||
public int TotalContributors { get; set; }
|
||||
public decimal CurrentPendingAmount { get; set; }
|
||||
public decimal CurrentAmount { get; set; }
|
||||
public decimal? ProgressPercentage { get; set; }
|
||||
public decimal? PendingProgressPercentage { get; set; }
|
||||
public DateTime LastUpdated { get; set; }
|
||||
public Dictionary<string, decimal> PaymentStats { get; set; }
|
||||
public Dictionary<string, decimal> PendingPaymentStats { get; set; }
|
||||
public Dictionary<string, PaymentStat> PaymentStats { get; set; }
|
||||
public Dictionary<string, PaymentStat> PendingPaymentStats { get; set; }
|
||||
public DateTime? LastResetDate { get; set; }
|
||||
public DateTime? NextResetDate { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public bool Started => !StartDate.HasValue || DateTime.UtcNow > StartDate;
|
||||
|
||||
public bool Ended => EndDate.HasValue && DateTime.UtcNow > EndDate;
|
||||
@@ -62,7 +69,6 @@ namespace BTCPayServer.Plugins.Crowdfund.Models
|
||||
public bool DisplayPerksValue { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public string ResetEvery { get; set; }
|
||||
public Dictionary<string, CurrencyData> CurrencyDataPayments { get; set; }
|
||||
public Dictionary<string, decimal> PerkValue { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user