示例#1
0
 internal TraktClient(IHttpClientProvider httpClientProvider = default)
 {
     HttpClientProvider = httpClientProvider ?? new HttpClientProvider(this);
     Configuration      = new TraktConfiguration();
     Authentication     = new TraktAuthenticationModule(this);
     Calendar           = new TraktCalendarModule(this);
     Certifications     = new TraktCertificationsModule(this);
     Checkins           = new TraktCheckinsModule(this);
     Comments           = new TraktCommentsModule(this);
     Countries          = new TraktCountriesModule(this);
     Episodes           = new TraktEpisodesModule(this);
     Genres             = new TraktGenresModule(this);
     Languages          = new TraktLanguagesModule(this);
     Lists           = new TraktListsModule(this);
     Movies          = new TraktMoviesModule(this);
     Networks        = new TraktNetworksModule(this);
     People          = new TraktPeopleModule(this);
     Recommendations = new TraktRecommendationsModule(this);
     Scrobble        = new TraktScrobbleModule(this);
     Search          = new TraktSearchModule(this);
     Seasons         = new TraktSeasonsModule(this);
     Shows           = new TraktShowsModule(this);
     Sync            = new TraktSyncModule(this);
     Users           = new TraktUsersModule(this);
 }
示例#2
0
 internal TraktClient()
 {
     Configuration   = new TraktConfiguration();
     Authentication  = new TraktAuthentication(this);
     OAuth           = new TraktOAuth(this);
     DeviceAuth      = new TraktDeviceAuth(this);
     Shows           = new TraktShowsModule(this);
     Seasons         = new TraktSeasonsModule(this);
     Episodes        = new TraktEpisodesModule(this);
     Movies          = new TraktMoviesModule(this);
     Calendar        = new TraktCalendarModule(this);
     Comments        = new TraktCommentsModule(this);
     People          = new TraktPeopleModule(this);
     Genres          = new TraktGenresModule(this);
     Search          = new TraktSearchModule(this);
     Recommendations = new TraktRecommendationsModule(this);
     Sync            = new TraktSyncModule(this);
     Users           = new TraktUsersModule(this);
     Checkins        = new TraktCheckinsModule(this);
     Scrobble        = new TraktScrobbleModule(this);
 }