Beispiel #1
0
 public PlexClientApi(HttpClient client, IBrowserOpener browserOpener)
 {
     this.browserOpener = browserOpener;
     client.BaseAddress = new Uri("https://plex.tv");
     plexTvApiJson      = RestService.For <IPlexTvApi>(client);
     plexTvApiXml       = RestService.For <IPlexTvApi>(client, new RefitSettings
     {
         ContentSerializer = new XmlContentSerializer(
             new XmlContentSerializerSettings
         {
             XmlReaderWriterSettings = new XmlReaderWriterSettings()
             {
                 ReaderSettings = new XmlReaderSettings
                 {
                     IgnoreWhitespace = true
                 }
             }
         }
             )
     });
 }
Beispiel #2
0
 public PlexTvApiClient(IPlexTvApi plexTvApi, IPlexSecretStore plexSecretStore, ILogger <PlexTvApiClient> logger)
 {
     _plexTvApi       = plexTvApi;
     _plexSecretStore = plexSecretStore;
     _logger          = logger;
 }