public void Initialize( IUIController uiController, IMsgRepo msgRepo, INetworkManager network, XiaoMiManager xiaoMiManager, IAnalyticManager analyticManager, ConfigHolder configHolder, IAnySDKManager anySdkManager, IosSDK ios, IWeChatManager weChatManager, IDataRepository dataRepository, LocalGameServer localGameServer) { _uiController = uiController; _ios = ios; _network = network; _msgRepo = msgRepo; _configHolder = configHolder; _xiaoMiManager = xiaoMiManager; _weChatManager = weChatManager; _analyticManager = analyticManager; _localGameServer = localGameServer; _anySdkManager = anySdkManager; _appState = dataRepository.GetContainer <AppState>(DataKey.AppState); _versionResult = dataRepository.GetContainer <VersionResult>(DataKey.VersionResult); _pLoginResult = dataRepository.GetContainer <PLoginResult>(DataKey.PLoginResult); _billboardRead = dataRepository.GetContainer <bool>(DataKey.BillboardRead); _currentGameMode = dataRepository.GetContainer <int>(DataKey.CurrentGameMode); _vipExchangeList = dataRepository.GetContainer <VipExchangeListResult>(DataKey.VipExchangeListResult); _treasureChestData = dataRepository.GetContainer <TreasureChestData>(DataKey.TreasureChestData); _hloginResult = dataRepository.GetContainer <HLoginResult>(DataKey.HLoginResult); _friendListResult = dataRepository.GetContainer <SFriendListResult>(DataKey.SFriendListResult); }
public void Inject( IDialogManager dialogManager, IDataRepository dataRepository, IAppController appController, IWeChatManager wechatManager, ConfigHolder configHolder, IAnySDKManager anySdkManager, IPIPLogic pipLogic) { _dialogManager = dialogManager; _wechatManager = wechatManager; _appController = appController; _config = configHolder; _pip = pipLogic; _anySdkManager = anySdkManager; _versionResult = dataRepository.GetContainer <VersionResult>(DataKey.VersionResult); _downloadAssetBundleInfo = dataRepository.GetContainer <DownloadAssetBundleInfo>(DataKey.DownloadAssetBundleInfo); }