2018-12-11 16:36:25 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.AppViewModels
|
|
|
|
|
{
|
|
|
|
|
public class UpdateCrowdfundViewModel
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
|
|
|
|
[MaxLength(30)]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
2018-12-28 17:38:20 +01:00
|
|
|
|
[MaxLength(50)]
|
|
|
|
|
public string Tagline { get; set; }
|
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
|
[Required]
|
|
|
|
|
public string Description { get; set; }
|
2018-12-22 15:02:16 +01:00
|
|
|
|
public string MainImageUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
public string NotificationUrl { get; set; }
|
2018-12-11 16:36:25 +01:00
|
|
|
|
|
|
|
|
|
[Required]
|
2018-12-31 11:38:05 +01:00
|
|
|
|
|
|
|
|
|
[Display(Name = "Enabled, Allow crowdfund to be publicly visible( still visible to you)")]
|
2018-12-28 17:38:20 +01:00
|
|
|
|
public bool Enabled { get; set; } = false;
|
2018-12-11 16:36:25 +01:00
|
|
|
|
|
2018-12-31 11:38:05 +01:00
|
|
|
|
[Required]
|
|
|
|
|
[Display(Name = "Enable background animations on new payments")]
|
|
|
|
|
public bool AnimationsEnabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(Name = "Enable sounds on new payments")]
|
|
|
|
|
public bool SoundsEnabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(Name = "Enable Disqus Comments")]
|
|
|
|
|
public bool DisqusEnabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
[Display(Name = "Disqus Shortname")]
|
|
|
|
|
public string DisqusShortname { get; set; }
|
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
|
public DateTime? EndDate { get; set; }
|
2018-12-31 11:38:05 +01:00
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
|
[Required]
|
|
|
|
|
[MaxLength(5)]
|
|
|
|
|
[Display(Name = "The primary currency used for targets and stats")]
|
2018-12-31 11:38:05 +01:00
|
|
|
|
public string TargetCurrency { get; set; } = "BTC";
|
2018-12-11 16:36:25 +01:00
|
|
|
|
|
|
|
|
|
[Display(Name = "Set a Target amount ")]
|
|
|
|
|
public decimal? TargetAmount { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Display(Name = "Do not allow additional contributions after target has been reached")]
|
|
|
|
|
public bool EnforceTargetAmount { get; set; }
|
|
|
|
|
|
2018-12-29 11:52:07 +01:00
|
|
|
|
[Display(Name = "Contribution Perks Template")]
|
|
|
|
|
public string PerksTemplate { get; set; }
|
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
|
[MaxLength(500)]
|
|
|
|
|
[Display(Name = "Custom bootstrap CSS file")]
|
|
|
|
|
public string CustomCSSLink { get; set; }
|
2018-12-22 15:02:16 +01:00
|
|
|
|
|
2018-12-22 15:43:40 +01:00
|
|
|
|
public string EmbeddedCSS { get; set; }
|
2019-01-02 12:47:06 +01:00
|
|
|
|
|
|
|
|
|
[Display(Name = "Base the contributed goal amount on the invoice amount and not actual payments")]
|
|
|
|
|
public bool UseInvoiceAmount { get; set; } = true;
|
2018-12-11 16:36:25 +01:00
|
|
|
|
}
|
|
|
|
|
}
|