mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models.AppViewModels
|
|
{
|
|
public class ViewCrowdfundViewModel
|
|
{
|
|
public string StatusMessage{ get; set; }
|
|
public string StoreId { get; set; }
|
|
public string AppId { get; set; }
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public string MainImageUrl { get; set; }
|
|
public string EmbeddedCSS { get; set; }
|
|
public string CustomCSSLink { get; set; }
|
|
public DateTime? StartDate { get; set; }
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
public string TargetCurrency { get; set; }
|
|
public decimal? TargetAmount { get; set; }
|
|
public bool EnforceTargetAmount { get; set; }
|
|
|
|
public CrowdfundInfo Info { get; set; }
|
|
public string Tagline { get; set; }
|
|
|
|
|
|
public class CrowdfundInfo
|
|
{
|
|
public int TotalContributors { get; set; }
|
|
public decimal CurrentAmount { get; set; }
|
|
public bool Active { get; set; }
|
|
public bool ShowProgress { get; set; }
|
|
public decimal? ProgressPercentage { get; set; }
|
|
public int? DaysLeft{ get; set; }
|
|
public int? DaysLeftToStart{ get; set; }
|
|
public decimal CurrentPendingAmount { get; set; }
|
|
public decimal? PendingProgressPercentage { get; set; }
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ContributeToCrowdfund
|
|
{
|
|
public ViewCrowdfundViewModel ViewCrowdfundViewModel { get; set; }
|
|
[Required] public decimal Amount { get; set; }
|
|
public string Email { get; set; }
|
|
public bool RedirectToCheckout { get; set; }
|
|
}
|
|
}
|