using System.Collections.Generic; using Abp.Configuration; using Abp.Localization; namespace Abp.Notifications { public class NotificationSettingProvider : SettingProvider { public override IEnumerable 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); } } }