Beispiel #1
0
        public GoogleDriveController()
        {
            // this needs to be read from DB
            GoogleDriveConfig _config = new GoogleDriveConfig(0, "", "Drive API Quickstart", "", "ya29.CjLTAp-1DkwPjYzeiCeZ6cVM2GHenDs4eQ1Wd9VF3UigCqXa_6NMZmHtkApdQTDgQZIomA", "1/7W0urTR9r_-6Y-qWzFkZa4t4yE9CDyTV_UmvojjnWLEMEudVrK5jSpoR30zcRFq6", "515653313915-27ogfmf6ddhvko2bt7mblbhhac30bapi.apps.googleusercontent.com", "b1XDQC-9fbxFvYcU3Za7eeTA", "*****@*****.**", null);

            _googleRepository = new GoogleDriveRepository(_config);
        }
        public BukvarixBotContext(string startupConfig)
        {
            _startupConfig            = startupConfig;
            _bukvarixBotContextConfig = JsonConvert.DeserializeObject <BukvarixBotContextConfig>(File.ReadAllText(startupConfig));
            _bukvarixBotContextConfig = _bukvarixBotContextConfig ?? new BukvarixBotContextConfig();
            _googleDriveRepository    = new GoogleDriveRepository(_bukvarixBotContextConfig.GoogleDriveCredentialsPath);

            _bukvarixDataSelectorManager = new BukvarixDataSelectorManager(_bukvarixBotContextConfig, _googleDriveRepository);
        }
 public CampaignsController(ICampaignRepository campaignRepository,
                            UserManager <ApplicationUser> userManager, IContributionRepository contributionRepository,
                            GoogleDriveRepository googleDriveRepository)
 {
     _campaignRepository         = campaignRepository;
     this.userManager            = userManager;
     this.contributionRepository = contributionRepository;
     this.googleDriveRepository  = googleDriveRepository;
     defaultImagePath            = googleDriveRepository.GetImageLink("1hwvAYuUsMmBhXPpdx5stq3uT9IMyAY95");
 }
 public AccountController(IUserRepository userRepository, UserManager <ApplicationUser> userManager, GoogleDriveRepository googleDriveRepository,
                          SignInManager <ApplicationUser> signInManager)
 {
     this.userManager           = userManager;
     this.googleDriveRepository = googleDriveRepository;
     this.signInManager         = signInManager;
     this.userRepository        = userRepository;
     defaultAvatarPath          = googleDriveRepository
                                  .GetImageLink("1mHrI0r8-nvveYI8j53MdHDecYTVIeVk9");
 }
Beispiel #5
0
 public ChaptersController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IFictionRepository fictionRepository,
     IChapterRepository chapterRepository,
     GoogleDriveRepository googleDriveRepository,
     ApplicationDbContext context)
 {
     _context                   = context;
     _userManager               = userManager;
     _signInManager             = signInManager;
     _fictionRepository         = fictionRepository;
     _chapterRepository         = chapterRepository;
     this.googleDriveRepository = googleDriveRepository;
     defaultImagePath           = googleDriveRepository.GetImageLink("1LkV9rOL_nxy314zW6F0V-OKYIYfUeV99");
 }