public LoginViewModel()
 {
     _googleService     = DependencyService.Get <IGoogleService>();
     _facebookService   = DependencyService.Get <IFacebookService>();
     _redeSocialService = DependencyService.Get <IRedeSocialService>();
     mainViewModel      = new MainViewModel();
 }
Exemple #2
0
        public MainPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IGoogleService googleService, IFacebookService facebookService, IAppleService appleService)
            : base(navigationService)
        {
            _pageDialogService = pageDialogService;
            _googleService     = googleService;
            _facebookService   = facebookService;
            _appleService      = appleService;

            _multiFactorService = new MultiFactorService(this);

            Title = "Main Page";

            _registration = CrossFirebaseAuth.Current.Instance.AddAuthStateChangedListener((auth) =>
            {
                _isSignedIn.Value = auth.CurrentUser != null;
            });

            ShowUserCommand = _isSignedIn.ToAsyncReactiveCommand();

            SignUpCommand.Subscribe(SignUp);
            SignInWithEmailAndPasswordCommand.Subscribe(SignInWithEmailAndPassword);
            SignInWithGoogleCommand.Subscribe(SignInWithGoogle);
            SignInWithTwitterCommand.Subscribe(() => SignInWithProvider("twitter.com"));
            SignInWithFacebookCommand.Subscribe(SignInWithFacebook);
            SignInWithGitHubCommand.Subscribe(() => SignInWithProvider("github.com"));
            SignInWithYahooCommand.Subscribe(() => SignInWithProvider("yahoo.com"));
            SignInWithMicrosoftCommand.Subscribe(() => SignInWithProvider("microsoft.com"));
            SignInWithAppleCommand.Subscribe(SignInWithApple);
            SignInWithPhoneNumberCommand.Subscribe(SignInWithPhoneNumber);
            SignInAnonymouslyCommand.Subscribe(SignInSignInAnonymously);
            ShowUserCommand.Subscribe(async() => await NavigationService.NavigateAsync <UserPageViewModel>());
        }
Exemple #3
0
        public UserPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IGoogleService googleService, IFacebookService facebookService, IAppleService appleService) : base(navigationService)
        {
            _pageDialogService = pageDialogService;
            _googleService     = googleService;
            _facebookService   = facebookService;
            _appleService      = appleService;

            _multiFactorService = new MultiFactorService(this);

            Title = "User";

            var user = _auth.CurrentUser;

            Update(user);

            Name        = new ReactivePropertySlim <string>(user?.DisplayName);
            Email       = new ReactivePropertySlim <string>(user?.Email);
            PhoneNumber = new ReactivePropertySlim <string>(user?.PhoneNumber);

            _isEnrolledMultiFactor.Value = user.MultiFactor.EnrolledFactors.Any();

            UpdateNameCommand.Subscribe(UpdateName);
            UpdateEmailCommand.Subscribe(UpdateEmail);
            UpdatePhoneNumberCommand.Subscribe(UpdatePhoneNumber);
            SignOutCommand.Subscribe(SignOut);
            LinkOrUnlinkWithGoogleCommand.Subscribe(() => IsLinkedWithGoogle.Value ? UnlinkWithProvider("google.com") : LinkWithGoogle());
            LinkOrUnlinkWithTwitterCommand.Subscribe(() => IsLinkedWithTwitter.Value ? UnlinkWithProvider("twitter.com") : LinkWithProvider("twitter.com"));
            LinkOrUnlinkWithFacebookCommand.Subscribe(() => IsLinkedWithFacebook.Value ? UnlinkWithProvider("facebook.com") : LinkWithFacebook());
            LinkOrUnlinkWithGitHubCommand.Subscribe(() => IsLinkedWithGitHub.Value ? UnlinkWithProvider("github.com") : LinkWithProvider("github.com"));
            LinkOrUnlinkWithYahooCommand.Subscribe(() => IsLinkedWithYahoo.Value ? UnlinkWithProvider("yahoo.com") : LinkWithProvider("yahoo.com"));
            LinkOrUnlinkWithMicrosoftCommand.Subscribe(() => IsLinkedWithMicrosoft.Value ? UnlinkWithProvider("microsoft.com") : LinkWithProvider("microsoft.com"));
            LinkOrUnlinkWithAppleCommand.Subscribe(() => IsLinkedWithApple.Value ? UnlinkWithProvider("apple.com") : LinkWithApple());
            EnrollOrUnenrollMultiFactorCommand.Subscribe(() => IsEnrolledMultiFactor.Value ? UnenrollMultiFactor() : EnrollMultiFactor());
            DeleteCommand.Subscribe(Delete);
        }
 public SearchDataService(IHttpContextAccessor httpContext, IGoogleService googleService, IContextFactory contextFactory, ISuggestionService suggestionService) : base(contextFactory)
 {
     this.httpContext       = httpContext;
     this.googleService     = googleService;
     this.contextFactory    = contextFactory;
     this.suggestionService = suggestionService;
 }
 public ProjectTaskService(IDatabaseFactory databaseFactory, IUserInfo userInfo, IMessageService iMessageService,
                           IGoogleService iGoogleService)
     : base(databaseFactory, userInfo)
 {
     _iMessageService = iMessageService;
     _iGoogleService  = iGoogleService;
 }
        //private readonly GoogleProductObjectContext _objectContext;

        #endregion

        #region Ctor
        public FroogleService(IGoogleService googleService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService, 
            IProductService productService,
            ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IPictureService pictureService,
            ICurrencyService currencyService,
            ILanguageService languageService,
            ISettingService settingService,
            IWorkContext workContext,
            IMeasureService measureService,
            MeasureSettings measureSettings,
            FroogleSettings froogleSettings,
            CurrencySettings currencySettings)
        {
            this._googleService = googleService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
            this._productService = productService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._pictureService = pictureService;
            this._currencyService = currencyService;
            this._languageService = languageService;
            this._settingService = settingService;
            this._workContext = workContext;
            this._measureService = measureService;
            this._measureSettings = measureSettings;
            this._froogleSettings = froogleSettings;
            this._currencySettings = currencySettings;
            //this._objectContext = objectContext;
        }
 public FeedFroogleController(
     IGoogleService googleService,
     ISettingService settingService)
 {
     this._googleService  = googleService;
     this._settingService = settingService;
 }
        private void TransferOwnershipTo(IReadOnlyList <FileDTO> googleFiles, IGoogleService newOwnerGoogleService, Action <FileDTO> callback)
        {
            var newOwner = newOwnerGoogleService.GetUserInfo();

            var commandsDto = googleFiles
                              .Select(file =>
            {
                var command = _driveService.Permissions.Create(new Google.Apis.Drive.v3.Data.Permission
                {
                    Role         = "owner",
                    Type         = "user",
                    EmailAddress = newOwner.EmailAddress
                }, file.Id);

                command.TransferOwnership = true;
                command.EmailMessage      = "Автоматический перенос.";
                return(new { command, file });
            })
                              .ToArray();

            _logger.LogMessage("Запускаем функцию переноса гугл-документов в пакетном режиме.");
            WrapBatchOperation(commandsDto, commandDto => commandDto.command, (index) => callback(googleFiles[index]));

            // removing edit permissions
            _logger.LogMessage("Останавливаем поток на 2 секунды, чтобы все данные сохранились в сервисах Google Drive");
            Thread.Sleep(2000);
            newOwnerGoogleService.DeleteOwnershipPermission(googleFiles);

            // correct dirs chain
            _logger.LogMessage("Останавливаем поток на 2 секунды, чтобы все данные сохранились в сервисах Google Drive");
            Thread.Sleep(2000);
            newOwnerGoogleService.RecoverParents(googleFiles);
        }
Exemple #9
0
 public AdminModule(IServiceProvider services, IOptionsMonitor <Config> config)
 {
     _discord       = services.GetRequiredService <DiscordSocketClient>();
     _googleService = services.GetRequiredService <IGoogleService>();
     _services      = services;
     _config        = config;
 }
 public FeedGoogleShoppingController(IGoogleService googleService,
                                     IProductService productService,
                                     ICurrencyService currencyService,
                                     ILocalizationService localizationService,
                                     IPluginFinder pluginFinder,
                                     ILogger logger,
                                     IWebHelper webHelper,
                                     IStoreService storeService,
                                     GoogleShoppingSettings GoogleShoppingSettings,
                                     ISettingService settingService,
                                     IPermissionService permissionService,
                                     IServiceProvider serviceProvider)
 {
     _googleService       = googleService;
     _productService      = productService;
     _currencyService     = currencyService;
     _localizationService = localizationService;
     _pluginFinder        = pluginFinder;
     _logger                 = logger;
     _webHelper              = webHelper;
     _storeService           = storeService;
     _GoogleShoppingSettings = GoogleShoppingSettings;
     _settingService         = settingService;
     _permissionService      = permissionService;
     _serviceProvider        = serviceProvider;
 }
 internal FoundationMvvmCross(
     IApiFactory apiFactory,
     ITogglDatabase database,
     ITimeService timeService,
     IScheduler scheduler,
     IAnalyticsService analyticsService,
     IGoogleService googleService,
     IApplicationShortcutCreator shortcutCreator,
     IBackgroundService backgroundService,
     IOnboardingStorage onboardingStorage,
     IAccessRestrictionStorage accessRestrictionStorage,
     IMvxNavigationService navigationService,
     IApiErrorHandlingService apiErrorHandlingService)
 {
     Database                 = database;
     ApiFactory               = apiFactory;
     TimeService              = timeService;
     Scheduler                = scheduler;
     AnalyticsService         = analyticsService;
     GoogleService            = googleService;
     ShortcutCreator          = shortcutCreator;
     BackgroundService        = backgroundService;
     OnboardingStorage        = onboardingStorage;
     AccessRestrictionStorage = accessRestrictionStorage;
     NavigationService        = navigationService;
     ApiErrorHandlingService  = apiErrorHandlingService;
 }
Exemple #12
0
 public WishListControllerTest(IHttpContextAccessor http, IContextFactory factory, IMapper mapper, IGoogleService googleService) : base(http, factory)
 {
     //Configure identity
     CreateIdentity(Users[0].Auth);
     this.mapper        = mapper;
     this.googleService = googleService;
 }
 public FeedGoogleShoppingController(IGoogleService googleService,
                                     IProductService productService,
                                     ICurrencyService currencyService,
                                     ILocalizationService localizationService,
                                     IPluginFinder pluginFinder,
                                     ILogger logger,
                                     IWebHelper webHelper,
                                     IStoreService storeService,
                                     GoogleShoppingSettings googleShoppingSettings,
                                     ISettingService settingService,
                                     IPermissionService permissionService,
                                     IHostingEnvironment hostingEnvironment)
 {
     this._googleService       = googleService;
     this._productService      = productService;
     this._currencyService     = currencyService;
     this._localizationService = localizationService;
     this._pluginFinder        = pluginFinder;
     this._logger                 = logger;
     this._webHelper              = webHelper;
     this._storeService           = storeService;
     this._googleShoppingSettings = googleShoppingSettings;
     this._settingService         = settingService;
     this._permissionService      = permissionService;
     this._hostingEnvironment     = hostingEnvironment;
 }
Exemple #14
0
 public RequestService(ITenantPersistenceService tenantPersistenceService,
                       IRequestRepository requestRepository,
                       IHoldingRequestRepository holdingRequestRepository,
                       IRequestHistoryRepository requestHistoryRepository,
                       ISystemEventRepository systemEventRepository,
                       ICourierRepository courierRepository,
                       IStaticValueService staticValueService,
                       INoteRequestRepository noteRequestRepository,
                       ISystemConfigurationRepository systemConfigurationRepository,
                       IScheduleRepository scheduleRepository, IGoogleService googleService,
                       ILocationRepository locationRepository,
                       IDiagnosticService diagnosticService,
                       IBusinessRuleSet <Request> businessRuleSet = null)
     : base(requestRepository, requestRepository, tenantPersistenceService, businessRuleSet)
 {
     _requestRepository             = requestRepository;
     _holdingRequestRepository      = holdingRequestRepository;
     _requestHistoryRepository      = requestHistoryRepository;
     _systemEventRepository         = systemEventRepository;
     _courierRepository             = courierRepository;
     _staticValueService            = staticValueService;
     _noteRequestRepository         = noteRequestRepository;
     _systemConfigurationRepository = systemConfigurationRepository;
     _scheduleRepository            = scheduleRepository;
     _googleService      = googleService;
     _locationRepository = locationRepository;
     _diagnosticService  = diagnosticService;
 }
Exemple #15
0
 public MapsController(IGoogleService googleService, IUserService userService, IAddressService addressService, ICommunityRepository communityRepository)
 {
     _googleService       = googleService;
     _userService         = userService;
     _addressService      = addressService;
     _communityRepository = communityRepository;
 }
 public FroogleService(IGoogleService googleService,
                       IProductService productService,
                       ICategoryService categoryService,
                       IManufacturerService manufacturerService,
                       IPictureService pictureService,
                       ICurrencyService currencyService,
                       ISettingService settingService,
                       IWorkContext workContext,
                       IMeasureService measureService,
                       MeasureSettings measureSettings,
                       FroogleSettings froogleSettings,
                       CurrencySettings currencySettings,
                       GoogleProductObjectContext objectContext)
 {
     this._googleService       = googleService;
     this._productService      = productService;
     this._categoryService     = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService      = pictureService;
     this._currencyService     = currencyService;
     this._settingService      = settingService;
     this._workContext         = workContext;
     this._measureService      = measureService;
     this._measureSettings     = measureSettings;
     this._froogleSettings     = froogleSettings;
     this._currencySettings    = currencySettings;
     this._objectContext       = objectContext;
 }
 public FroogleService(IScheduleTaskService scheduleTaskService,
     IGoogleService googleService,
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     ICurrencyService currencyService,
     IWebHelper webHelper,
     ISettingService settingService,
     IWorkContext workContext,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     StoreInformationSettings storeInformationSettings,
     FroogleSettings froogleSettings,
     CurrencySettings currencySettings,
     GoogleProductObjectContext objectContext)
 {
     this._scheduleTaskService = scheduleTaskService;
     this._googleService = googleService;
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._webHelper = webHelper;
     this._settingService = settingService;
     this._workContext = workContext;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._froogleSettings = froogleSettings;
     this._currencySettings = currencySettings;
     this._objectContext = objectContext;
 }
 public FeedGoogleShoppingController(IGoogleService googleService,
                                     IProductService productService,
                                     ICurrencyService currencyService,
                                     ILocalizationService localizationService,
                                     IPluginFinder pluginFinder,
                                     ILogger logger,
                                     IWebHelper webHelper,
                                     IStoreService storeService,
                                     ISettingService settingService,
                                     IPermissionService permissionService,
                                     IHostingEnvironment hostingEnvironment,
                                     IStoreContext storeContext, GoogleShoppingSettings googleShoppingSettings, IVendorService vendorService, IStaticCacheManager cacheManager, IWorkContext workContext)
 {
     this._googleService       = googleService;
     this._productService      = productService;
     this._currencyService     = currencyService;
     this._localizationService = localizationService;
     this._pluginFinder        = pluginFinder;
     this._logger                 = logger;
     this._webHelper              = webHelper;
     this._storeService           = storeService;
     this._settingService         = settingService;
     this._permissionService      = permissionService;
     this._hostingEnvironment     = hostingEnvironment;
     this._googleShoppingSettings = googleShoppingSettings;
     this._vendorService          = vendorService;
     this._cacheManager           = cacheManager;
     this._workContext            = workContext;
     this._storeContext           = storeContext;
 }
Exemple #19
0
 public FeedGoogleShoppingController(ICurrencyService currencyService,
                                     IGenericAttributeService genericAttributeService,
                                     IGoogleService googleService,
                                     IHostingEnvironment hostingEnvironment,
                                     ILocalizationService localizationService,
                                     INotificationService notificationService,
                                     ILogger logger,
                                     IPermissionService permissionService,
                                     IPluginService pluginService,
                                     IProductService productService,
                                     ISettingService settingService,
                                     IStoreContext storeContext,
                                     IStoreService storeService,
                                     IWebHelper webHelper,
                                     IWorkContext workContext)
 {
     _currencyService         = currencyService;
     _genericAttributeService = genericAttributeService;
     _googleService           = googleService;
     _hostingEnvironment      = hostingEnvironment;
     _localizationService     = localizationService;
     _notificationService     = notificationService;
     _logger            = logger;
     _permissionService = permissionService;
     _pluginService     = pluginService;
     _productService    = productService;
     _settingService    = settingService;
     _storeContext      = storeContext;
     _storeService      = storeService;
     _webHelper         = webHelper;
     _workContext       = workContext;
 }
Exemple #20
0
        public LoginManager(
            IApiFactory apiFactory,
            ITogglDatabase database,
            IGoogleService googleService,
            IApplicationShortcutCreator shortcutCreator,
            IAccessRestrictionStorage accessRestrictionStorage,
            IAnalyticsService analyticsService,
            IPrivateSharedStorageService privateSharedStorageService,
            Func <ITogglApi, ITogglDataSource> createDataSource,
            IScheduler scheduler
            )
        {
            Ensure.Argument.IsNotNull(database, nameof(database));
            Ensure.Argument.IsNotNull(apiFactory, nameof(apiFactory));
            Ensure.Argument.IsNotNull(accessRestrictionStorage, nameof(accessRestrictionStorage));
            Ensure.Argument.IsNotNull(googleService, nameof(googleService));
            Ensure.Argument.IsNotNull(shortcutCreator, nameof(shortcutCreator));
            Ensure.Argument.IsNotNull(analyticsService, nameof(analyticsService));
            Ensure.Argument.IsNotNull(privateSharedStorageService, nameof(privateSharedStorageService));
            Ensure.Argument.IsNotNull(createDataSource, nameof(createDataSource));
            Ensure.Argument.IsNotNull(scheduler, nameof(scheduler));

            this.database   = database;
            this.apiFactory = apiFactory;
            this.accessRestrictionStorage    = accessRestrictionStorage;
            this.googleService               = googleService;
            this.analyticsService            = analyticsService;
            this.privateSharedStorageService = privateSharedStorageService;
            this.shortcutCreator             = shortcutCreator;
            this.createDataSource            = createDataSource;
            this.scheduler = scheduler;
        }
Exemple #21
0
 public FroogleService(IGoogleService googleService,
                       IProductService productService,
                       ICategoryService categoryService,
                       IManufacturerService manufacturerService,
                       IPictureService pictureService,
                       ICurrencyService currencyService,
                       IWebHelper webHelper, ISettingService settingService,
                       StoreInformationSettings storeInformationSettings,
                       FroogleSettings froogleSettings,
                       CurrencySettings currencySettings,
                       GoogleProductObjectContext objectContext)
 {
     this._googleService            = googleService;
     this._productService           = productService;
     this._categoryService          = categoryService;
     this._manufacturerService      = manufacturerService;
     this._pictureService           = pictureService;
     this._currencyService          = currencyService;
     this._webHelper                = webHelper;
     this._settingService           = settingService;
     this._storeInformationSettings = storeInformationSettings;
     this._froogleSettings          = froogleSettings;
     this._currencySettings         = currencySettings;
     this._objectContext            = objectContext;
 }
        public FeedFroogleController(
			IGoogleService googleService, 
			ISettingService settingService)
		{
			this._googleService = googleService;
			this._settingService = settingService;
		}
 public FroogleService(IGoogleService googleService,
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     ICurrencyService currencyService,
     ISettingService settingService,
     IWorkContext workContext,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     FroogleSettings froogleSettings,
     CurrencySettings currencySettings,
     GoogleProductObjectContext objectContext)
 {
     this._googleService = googleService;
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._settingService = settingService;
     this._workContext = workContext;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._froogleSettings = froogleSettings;
     this._currencySettings = currencySettings;
     this._objectContext = objectContext;
 }
 public GoogleShoppingService(IGoogleService googleService,
                              IPriceCalculationService priceCalculationService,
                              ITaxService taxService,
                              IProductService productService,
                              ICategoryService categoryService,
                              IManufacturerService manufacturerService,
                              IPictureService pictureService,
                              ICurrencyService currencyService,
                              ILanguageService languageService,
                              ISettingService settingService,
                              IWorkContext workContext,
                              IMeasureService measureService,
                              MeasureSettings measureSettings,
                              GoogleShoppingSettings googleShoppingSettings,
                              CurrencySettings currencySettings,
                              GoogleProductObjectContext objectContext)
 {
     this._googleService           = googleService;
     this._priceCalculationService = priceCalculationService;
     this._taxService             = taxService;
     this._productService         = productService;
     this._categoryService        = categoryService;
     this._manufacturerService    = manufacturerService;
     this._pictureService         = pictureService;
     this._currencyService        = currencyService;
     this._languageService        = languageService;
     this._settingService         = settingService;
     this._workContext            = workContext;
     this._measureService         = measureService;
     this._measureSettings        = measureSettings;
     this._googleShoppingSettings = googleShoppingSettings;
     this._currencySettings       = currencySettings;
     this._objectContext          = objectContext;
 }
Exemple #25
0
 public SuggestionService(IContextFactory contextFactory, IHttpContextAccessor httpContext, IGoogleService googleService) : base(contextFactory)
 {
     this.contextFactory = contextFactory;
     this.httpContext    = httpContext;
     this.googleService  = googleService;
     r = new Random();
 }
        private void button1_Click(object sender, EventArgs e)
        {
            var authTask = NewOwnerAuthService.Authorize();
            var contTask = authTask.ContinueWith(t =>
            {
                var service = new DriveService(new BaseClientService.Initializer()
                {
                    HttpClientInitializer = t.Result,
                    ApplicationName       = ApplicationName,
                });

                _logger.LogMessage("Создан сервис Гугла для обработки запросов");
                NewOwnerGoogleService = new GoogleService(service, _expBackoffPolicy, _logger);

                var userInfo = NewOwnerGoogleService.GetUserInfo();
                label1.Text  = userInfo.Name + " (" + userInfo.EmailAddress + ")";
                // pictureBox2.Load(userInfo.PhotoLink.AbsoluteUri);
            }, CancellationToken.None, TaskContinuationOptions.OnlyOnRanToCompletion, TaskScheduler.FromCurrentSynchronizationContext());

            contTask.ContinueWith(t =>
            {
                var message = Helpers.GetFullMessage(t.Exception);
                _logger.LogMessage(message);
                MessageBox.Show(message);
            }, CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.FromCurrentSynchronizationContext());
        }
Exemple #27
0
 public SessionService(IApplicationDataService applicationSettings, IFacebookService facebookService,
                       IMicrosoftService microsoftService, IGoogleService googleService)
 {
     this.applicationSettings = applicationSettings;
     this.facebookService     = facebookService;
     this.microsoftService    = microsoftService;
     this.googleService       = googleService;
 }
 public Job(IGoogleService googleService,
            IAddressBuilder addressBuilder,
            IOptions <FileLocations> fileLocationOptions)
 {
     _googleService  = googleService;
     _addressBuilder = addressBuilder;
     _fileLocations  = fileLocationOptions.Value;
 }
 public CommonService(
     IAccountRespsitory iAccount,
     IGoogleService iGoogleService
     )
 {
     _iAccount       = iAccount;
     _iGoogleService = iGoogleService;
 }
Exemple #30
0
 public LineService(ILogger <LineService> logger, IAPIService apiService, IGoogleService googleAPIService, ILineDBService lineDBService, ILineEmoji lineEmoji)
 {
     _logger           = logger;
     _apiService       = apiService;
     _googleAPIService = googleAPIService;
     _lineDBService    = lineDBService;
     _lineEmoji        = lineEmoji;
 }
Exemple #31
0
 public AccountApiController(
     ICommonService iCommonService,
     IGoogleService googleService
     )
 {
     _iCommonService   = iCommonService;
     _googleServiceNew = googleService;
 }
Exemple #32
0
        //private readonly IMemoryCache _memoryCache;

        public RestaurantService(IGoogleService googleService, IMapper autoMapper)//, IMemoryCache memoryCache)
        {
            _googleService = googleService ?? throw new ArgumentNullException(nameof(googleService));
            _autoMapper    = autoMapper ?? throw new ArgumentNullException(nameof(autoMapper));

            //use memory to cache result from apis
            //_memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
        }
Exemple #33
0
 public AuthController(
     IGoogleService googleService,
     IUserService userService,
     JwtIssuer jwtIssuer)
 {
     this.googleService = googleService;
     this.userService   = userService;
     this.jwtIssuer     = jwtIssuer;
 }
        private void button2_Click(object sender, EventArgs e)
        {
            OldOwnerAuthService.Clear();
            NewOwnerAuthService.Clear();

            textBox1.Text         = label1.Text = OldOnerNameLabel.Text = "";
            pictureBox1.Image     = pictureBox2.Image = null;
            OldOwnerGoogleService = NewOwnerGoogleService = null;
        }
        public FroogleService(
			IGoogleService googleService,
            ISettingService settingService,
            GoogleProductObjectContext objectContext,
			ILocalizationService localizationService)
        {
            this._googleService = googleService;
            this._settingService = settingService;
            this._objectContext = objectContext;
			this._localizationService = localizationService;
        }
 /// <summary> 
 /// Initializes a new instance of the <see cref="SessionService" /> class. 
 /// </summary> 
 /// <param name="applicationSettings">The application settings.</param> 
 /// <param name="facebookService">The facebook service.</param> 
 /// <param name="microsoftService">The microsoft service.</param> 
 /// <param name="googleService">The google service.</param> 
 /// <param name="logManager">The log manager.</param> 
 public SessionService(IApplicationDataService applicationSettings,
     IFacebookService facebookService,
     IMicrosoftService microsoftService,
     IGoogleService googleService, ILogManager logManager)
 {
     _applicationSettings = applicationSettings;
     _facebookService = facebookService;
     _microsoftService = microsoftService;
     _googleService = googleService;
     _logManager = logManager;
 }
        public AuthenticationController(ICommandExecutor commandExecutor, IMicrosoftService microsoftService, IFacebookService facebookService, IGoogleService googleService, ITwitterService twitterService)
            : base(commandExecutor)
        {
            Guard.NotNull(commandExecutor, nameof(commandExecutor));
            Guard.NotNull(microsoftService, nameof(microsoftService));
            Guard.NotNull(facebookService, nameof(facebookService));
            Guard.NotNull(googleService, nameof(googleService));
            Guard.NotNull(twitterService, nameof(twitterService));

            this._microsoftService = microsoftService;
            this._facebookService = facebookService;
            this._googleService = googleService;
            this._twitterService = twitterService;
        }
 public FeedFroogleController(IGoogleService googleService, 
     IProductService productService, ICurrencyService currencyService,
     ILocalizationService localizationService, IPluginFinder pluginFinder,
     ILogger logger, IWebHelper webHelper, IScheduleTaskService scheduleTaskService,
     FroogleSettings froogleSettings, ISettingService settingService)
 {
     this._googleService = googleService;
     this._productService = productService;
     this._currencyService = currencyService;
     this._localizationService = localizationService;
     this._pluginFinder = pluginFinder;
     this._logger = logger;
     this._webHelper = webHelper;
     this._scheduleTaskService = scheduleTaskService;
     this._froogleSettings = froogleSettings;
     this._settingService = settingService;
 }
 public FeedFroogleController(IGoogleService googleService, 
     IProductService productService, ICurrencyService currencyService,
     ILocalizationService localizationService, IPromotionFeedService promotionFeedService, 
     ILogger logger, IWebHelper webHelper,
     FroogleSettings froogleSettings, ISettingService settingService,
     IPermissionService permissionService)
 {
     this._googleService = googleService;
     this._productService = productService;
     this._currencyService = currencyService;
     this._localizationService = localizationService;
     this._promotionFeedService = promotionFeedService;
     this._logger = logger;
     this._webHelper = webHelper;
     this._froogleSettings = froogleSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }