work on building the viewmodel for crowdfund

This commit is contained in:
Andrew Camilleri
2018-12-18 16:27:03 +01:00
parent b5d360594a
commit 27bde55f54
7 changed files with 202 additions and 17 deletions

View File

@@ -1,8 +1,39 @@
namespace BTCPayServer.Models.AppViewModels
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 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 class CrowdfundInfo
{
public int TotalContributors { get; set; }
public decimal CurrentAmount { get; set; }
public bool Active { get; set; }
}
}
public class ContributeToCrowdfund
{
[Required] public decimal Amount { get; set; }
public string Email { get; set; }
}
}