-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGrantManagerFeaturesDefinitionProvider.cs
More file actions
61 lines (53 loc) · 2.52 KB
/
GrantManagerFeaturesDefinitionProvider.cs
File metadata and controls
61 lines (53 loc) · 2.52 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using Unity.Flex.Localization;
using Unity.GrantManager.Localization;
using Unity.Notifications.Localization;
using Unity.Payments.Localization;
using Volo.Abp.Features;
using Volo.Abp.Localization;
using Volo.Abp.Validation.StringValues;
namespace Unity.GrantManager
{
public class GrantManagerFeaturesDefinitionProvider : FeatureDefinitionProvider
{
public override void Define(IFeatureDefinitionContext context)
{
var myGroup = context.AddGroup("GrantManager");
var defaultValue = "false";
myGroup.AddFeature("Unity.Payments",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<PaymentsResource>("Payments"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.Notifications",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<NotificationsResource>("Allow Notifications"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.Flex",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<FlexResource>("Flex"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.Reporting",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<GrantManagerResource>("Reporting"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.AI.AttachmentSummaries",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<GrantManagerResource>("AI Attachment Summaries"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.AI.ApplicationAnalysis",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<GrantManagerResource>("AI Application Analysis"),
valueType: new ToggleStringValueType());
myGroup.AddFeature("Unity.AIReporting",
defaultValue: defaultValue,
displayName: LocalizableString
.Create<GrantManagerResource>("AIReporting"),
valueType: new ToggleStringValueType());
}
}
}