public BackgroundFetchService(AnalyticsService analyticsService,
                               GitHubApiV3Service gitHubApiV3Service,
                               GitHubGraphQLApiService gitHubGraphQLApiService,
                               RepositoryDatabase repositoryDatabase,
                               ReferringSitesDatabase referringSitesDatabase,
                               NotificationService notificationService)
 {
     _analyticsService        = analyticsService;
     _gitHubApiV3Service      = gitHubApiV3Service;
     _gitHubGraphQLApiService = gitHubGraphQLApiService;
     _repositoryDatabase      = repositoryDatabase;
     _notificationService     = notificationService;
     _referringSitesDatabase  = referringSitesDatabase;
 }
Example #2
0
        public BackgroundFetchService(IAppInfo appInfo,
                                      GitHubUserService gitHubUserService,
                                      IAnalyticsService analyticsService,
                                      GitHubApiV3Service gitHubApiV3Service,
                                      RepositoryDatabase repositoryDatabase,
                                      NotificationService notificationService,
                                      ReferringSitesDatabase referringSitesDatabase,
                                      GitHubGraphQLApiService gitHubGraphQLApiService,
                                      GitHubApiRepositoriesService gitHubApiRepositoriesService)
        {
            _analyticsService             = analyticsService;
            _gitHubUserService            = gitHubUserService;
            _gitHubApiV3Service           = gitHubApiV3Service;
            _repositoryDatabase           = repositoryDatabase;
            _notificationService          = notificationService;
            _referringSitesDatabase       = referringSitesDatabase;
            _gitHubGraphQLApiService      = gitHubGraphQLApiService;
            _gitHubApiRepositoriesService = gitHubApiRepositoriesService;

            CleanUpDatabaseIdentifier            = $"{appInfo.PackageName}.{nameof(CleanUpDatabase)}";
            NotifyTrendingRepositoriesIdentifier = $"{appInfo.PackageName}.{nameof(NotifyTrendingRepositories)}";
        }