| 123456789101112131415161718192021222324252627 |
- using System.Collections.Generic;
- using Abp.Configuration;
- using Abp.Localization;
- namespace Abp.Notifications
- {
- public class NotificationSettingProvider : SettingProvider
- {
- public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
- {
- return new[]
- {
- new SettingDefinition(
- NotificationSettingNames.ReceiveNotifications,
- "true",
- L("ReceiveNotifications"),
- scopes: SettingScopes.User,
- clientVisibilityProvider: new VisibleSettingClientVisibilityProvider())
- };
- }
- private static LocalizableString L(string name)
- {
- return new LocalizableString(name, AbpConsts.LocalizationSourceName);
- }
- }
- }
|