-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathSupportMeConfiguration.cs
More file actions
28 lines (16 loc) · 803 Bytes
/
Copy pathSupportMeConfiguration.cs
File metadata and controls
28 lines (16 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace LinkDotNet.Blog.Web.Features.SupportMe.Components;
public class SupportMeConfiguration
{
public const string SupportMeConfigurationSection = "SupportMe";
public string? KofiToken { get; init; }
public bool IsKofiEnabled => !string.IsNullOrEmpty(KofiToken);
public string? GithubSponsorName { get; init; }
public bool IsGithubSponsorAvailable => !string.IsNullOrEmpty(GithubSponsorName);
public string? PatreonName { get; init; }
public bool IsPatreonEnabled => !string.IsNullOrEmpty(PatreonName);
public bool ShowUnderBlogPost { get; init; }
public bool ShowUnderIntroduction { get; init; }
public bool ShowInFooter { get; init; }
public bool ShowSupportMePage { get; init; }
public string? SupportMePageDescription { get; init; }
}