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;
		}
Пример #2
0
        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);
        }
Пример #3
0
        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;
 }
Пример #5
0
 public InAppPurchaseNetworkDecorator(IInAppPurchaseService inAppPurcahseService, INetworkActivityService networkActivity)
 {
     _inAppPurcahseService = inAppPurcahseService;
     _networkActivity      = networkActivity;
 }
Пример #6
0
 public FeaturesService(IDefaultValueService defaultValueService, IInAppPurchaseService inAppPurchaseService)
 {
     _defaultValueService  = defaultValueService;
     _inAppPurchaseService = inAppPurchaseService;
 }
 public InAppPurchaseNetworkDecorator(IInAppPurchaseService inAppPurcahseService, INetworkActivityService networkActivity)
 {
     _inAppPurcahseService = inAppPurcahseService;
     _networkActivity = networkActivity;
 }
Пример #8
0
 public UpgradeViewController()
 {
     _featuresService        = Locator.Current.GetService <IFeaturesService>();
     _networkActivityService = Locator.Current.GetService <INetworkActivityService>();
     _inAppPurchaseService   = Locator.Current.GetService <IInAppPurchaseService>();
 }
Пример #9
0
 public UpgradesView(IFeaturesService featuresService, IAlertDialogFactory alertDialogService, IInAppPurchaseService inAppPurchaseService)
 {
     _featuresService      = featuresService;
     _inAppPurchaseService = inAppPurchaseService;
     _alertDialogService   = alertDialogService;
 }
Пример #10
0
 public FeaturesService(IDefaultValueService defaultValueService, IInAppPurchaseService inAppPurchaseService)
 {
     _defaultValueService = defaultValueService;
     _inAppPurchaseService = inAppPurchaseService;
 }
Пример #11
0
 public FeaturesService(IDefaultValueService defaultValueService = null, IInAppPurchaseService inAppPurchaseService = null)
 {
     _defaultValueService  = defaultValueService ?? Locator.Current.GetService <IDefaultValueService>();
     _inAppPurchaseService = inAppPurchaseService ?? Locator.Current.GetService <IInAppPurchaseService>();
 }
Пример #12
0
 public UpgradeViewController()
 {
     _featuresService = Locator.Current.GetService<IFeaturesService>();
     _networkActivityService = Locator.Current.GetService<INetworkActivityService>();
     _inAppPurchaseService = Locator.Current.GetService<IInAppPurchaseService>();
 }
Пример #13
0
 public FeaturesService(IInAppPurchaseService inAppPurchaseService)
 {
     _defaultValueService  = CrossSettings.Current;
     _inAppPurchaseService = inAppPurchaseService;
 }