2020-06-28 21:44:35 -05:00
|
|
|
using System;
|
2019-02-19 13:07:10 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Services.Apps
|
|
|
|
{
|
|
|
|
public class CrowdfundSettings
|
|
|
|
{
|
|
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
2022-06-28 05:03:13 +02:00
|
|
|
public bool Enabled { get; set; } = true;
|
2019-02-19 13:07:10 +09:00
|
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
public string TargetCurrency { get; set; }
|
2022-06-28 05:03:13 +02:00
|
|
|
|
2022-05-17 14:34:06 +09:00
|
|
|
decimal? _TargetAmount;
|
|
|
|
public decimal? TargetAmount
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
// In the past, target amount might have been 0, creating exception
|
|
|
|
if (_TargetAmount is decimal v && v == 0.0m)
|
|
|
|
return null;
|
|
|
|
return _TargetAmount;
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
_TargetAmount = value;
|
|
|
|
}
|
|
|
|
}
|
2019-02-19 13:07:10 +09:00
|
|
|
|
|
|
|
public bool EnforceTargetAmount { get; set; }
|
|
|
|
public string CustomCSSLink { get; set; }
|
|
|
|
public string MainImageUrl { get; set; }
|
|
|
|
public string NotificationUrl { get; set; }
|
|
|
|
public string Tagline { get; set; }
|
|
|
|
public string EmbeddedCSS { get; set; }
|
|
|
|
public string PerksTemplate { get; set; }
|
2022-02-14 10:14:21 +01:00
|
|
|
public bool DisqusEnabled { get; set; }
|
|
|
|
public bool SoundsEnabled { get; set; }
|
2019-02-19 13:07:10 +09:00
|
|
|
public string DisqusShortname { get; set; }
|
2022-06-28 05:03:13 +02:00
|
|
|
public bool AnimationsEnabled { get; set; }
|
2019-02-19 13:07:10 +09:00
|
|
|
public int ResetEveryAmount { get; set; } = 1;
|
|
|
|
public CrowdfundResetEvery ResetEvery { get; set; } = CrowdfundResetEvery.Never;
|
|
|
|
[Obsolete("Use AppData.TagAllInvoices instead")]
|
|
|
|
public bool UseAllStoreInvoices { get; set; }
|
|
|
|
public bool DisplayPerksRanking { get; set; }
|
2021-10-04 07:54:06 +02:00
|
|
|
public bool DisplayPerksValue { get; set; }
|
2019-02-19 13:07:10 +09:00
|
|
|
public bool SortPerksByPopularity { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
public string[] AnimationColors { get; set; } =
|
2019-03-07 06:25:09 +01:00
|
|
|
{
|
|
|
|
"#FF6138", "#FFBE53", "#2980B9", "#282741"
|
|
|
|
};
|
|
|
|
|
2021-10-04 07:54:06 +02:00
|
|
|
public string[] Sounds { get; set; } =
|
2019-03-07 06:25:09 +01:00
|
|
|
{
|
2022-06-28 05:03:13 +02:00
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/dominating.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/doublekill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/doublekill2.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/eagleeye.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/firstblood.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/firstblood2.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/firstblood3.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/godlike.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/hattrick.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/headhunter.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/headshot.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/headshot2.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/headshot3.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/holyshit.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/killingspree.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/ludicrouskill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/megakill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/monsterkill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/multikill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/ownage.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/payback.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/rampage.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/teamkiller.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/triplekill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/ultrakill.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/unstoppable.wav",
|
|
|
|
"https://github.com/ClaudiuHKS/AdvancedQuakeSounds/tree/master/sound/AQS/whickedsick.wav"
|
2019-03-07 06:25:09 +01:00
|
|
|
};
|
2019-02-19 13:07:10 +09:00
|
|
|
}
|
|
|
|
public enum CrowdfundResetEvery
|
|
|
|
{
|
|
|
|
Never,
|
|
|
|
Hour,
|
|
|
|
Day,
|
|
|
|
Month,
|
|
|
|
Year
|
|
|
|
}
|
|
|
|
}
|