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();
            }
        }
Beispiel #2
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);
        }
 public DataProvider(ISaverService saverService)
 {
     _saverService      = saverService;
     _set               = _saverService.Get <List <UserInfo> >(Constants.UserContextKey);
     _localizationModel = _saverService.Get <Dictionary <string, LocalizationModel> >(Constants.Localization);
 }
Beispiel #4
0
 public UserManager(ISaverService saverService)
 {
     _saverService = saverService;
     _set          = _saverService.Get <List <UserInfo> >(UserContextKey);
 }
 public DataProvider(ISaverService saverService)
 {
     _saverService = saverService;
     _set          = _saverService.Get <List <UserInfo> >(Constants.UserContextKey);
 }