Пример #1
0
        public LocalizationManager(ISaverService saverService, IAssetsHelper assetsHelper)
        {
            _saverService      = saverService;
            _localizationModel = _saverService.Get <Dictionary <string, LocalizationModel> >(Localization);

            Model = _localizationModel.ContainsKey(DefaultLang)
                ? _localizationModel[DefaultLang]
                : assetsHelper.GetLocalization(DefaultLang);
        }
Пример #2
0
        public ConfigManager(ISaverService saverService, IAssetsHelper assetsHelper)
        {
            _saverService = saverService;

            SteemNodeConfigs = _saverService.Get <List <NodeConfig> >(SteemNodeConfigKey);
            if (SteemNodeConfigs == null || !SteemNodeConfigs.Any())
            {
                SteemNodeConfigs = assetsHelper.SteemNodesConfig();
            }

            GolosNodeConfigs = _saverService.Get <List <NodeConfig> >(GolosNodeConfigKey);
            if (GolosNodeConfigs == null || !GolosNodeConfigs.Any())
            {
                GolosNodeConfigs = assetsHelper.GolosNodesConfig();
            }
        }
 public DataProvider(ISaverService saverService)
 {
     _saverService      = saverService;
     _set               = _saverService.Get <List <UserInfo> >(Constants.UserContextKey);
     _localizationModel = _saverService.Get <Dictionary <string, LocalizationModel> >(Constants.Localization);
 }
Пример #4
0
 public UserManager(ISaverService saverService)
 {
     _saverService = saverService;
     _set          = _saverService.Get <List <UserInfo> >(UserContextKey);
 }
Пример #5
0
 public DataProvider(ISaverService saverService)
 {
     _saverService = saverService;
     _set          = _saverService.Get <List <UserInfo> >(Constants.UserContextKey);
 }
Пример #6
0
 public App(ISaverService saverService)
 {
     _saverService = saverService;
 }