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 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); }
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); }
public App(ISaverService saverService) { _saverService = saverService; }