public LitresPurchaseService( ICatalogProvider catalogProvider, ICredentialsProvider credentialsProvider, IProfileProvider profileProvider, IInAppPurchaseService inAppPurchaseSevice, ICatalitClient client, IPurchaseServiceDecorator purchaseServiceDecorator, IDeviceInfoService deviceInfoService) { _inAppPurchaseService = inAppPurchaseSevice; _client = client; _catalogProvider = catalogProvider; _credentialsProvider = credentialsProvider; _profileProvider = profileProvider; _purchaseServiceDecorator = purchaseServiceDecorator; _deviceInfoService = deviceInfoService; }
public OptionsViewModel(IInAppPurchaseService inAppPurchaseService) { _inAppPurchaseService = inAppPurchaseService; if (Device.OS == TargetPlatform.Android || Device.OS == TargetPlatform.iOS)//TODO: fix this { IsRemoveAdsVisible = true; } else { IsRemoveAdsVisible = false; } var adsRemoved = AreAdsRemoved((PurchaseState)Settings.PurchaseStatus); SetRemoveAdsText(adsRemoved); }
public UpgradeView(INetworkActivityService networkActivityService) { _featuresService = Locator.Current.GetService<IFeaturesService>(); _inAppPurchaseService = Locator.Current.GetService<IInAppPurchaseService>(); _web = new UIWebView { ScalesPageToFit = true, AutoresizingMask = UIViewAutoresizing.All }; _web.LoadFinished += (sender, e) => networkActivityService.PopNetworkActive(); _web.LoadStarted += (sender, e) => networkActivityService.PushNetworkActive(); _web.LoadError += (sender, e) => networkActivityService.PopNetworkActive(); _web.ShouldStartLoad = (w, r, n) => ShouldStartLoad(r, n); _activityView = new UIActivityIndicatorView { Color = Theme.PrimaryNavigationBarColor, AutoresizingMask = UIViewAutoresizing.FlexibleWidth, }; }
public BuyCreditsDetailsViewModel(IApiService apiService, ICacheService cacheService, IInAppPurchaseService inAppPurchaseService) : base(apiService, cacheService) { this.mInAppPurchaseService = inAppPurchaseService; }
public InAppPurchaseNetworkDecorator(IInAppPurchaseService inAppPurcahseService, INetworkActivityService networkActivity) { _inAppPurcahseService = inAppPurcahseService; _networkActivity = networkActivity; }
public FeaturesService(IDefaultValueService defaultValueService, IInAppPurchaseService inAppPurchaseService) { _defaultValueService = defaultValueService; _inAppPurchaseService = inAppPurchaseService; }
public UpgradeViewController() { _featuresService = Locator.Current.GetService <IFeaturesService>(); _networkActivityService = Locator.Current.GetService <INetworkActivityService>(); _inAppPurchaseService = Locator.Current.GetService <IInAppPurchaseService>(); }
public UpgradesView(IFeaturesService featuresService, IAlertDialogFactory alertDialogService, IInAppPurchaseService inAppPurchaseService) { _featuresService = featuresService; _inAppPurchaseService = inAppPurchaseService; _alertDialogService = alertDialogService; }
public FeaturesService(IDefaultValueService defaultValueService = null, IInAppPurchaseService inAppPurchaseService = null) { _defaultValueService = defaultValueService ?? Locator.Current.GetService <IDefaultValueService>(); _inAppPurchaseService = inAppPurchaseService ?? Locator.Current.GetService <IInAppPurchaseService>(); }
public UpgradeViewController() { _featuresService = Locator.Current.GetService<IFeaturesService>(); _networkActivityService = Locator.Current.GetService<INetworkActivityService>(); _inAppPurchaseService = Locator.Current.GetService<IInAppPurchaseService>(); }
public FeaturesService(IInAppPurchaseService inAppPurchaseService) { _defaultValueService = CrossSettings.Current; _inAppPurchaseService = inAppPurchaseService; }