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 } } } ) }); }
public PlexTvApiClient(IPlexTvApi plexTvApi, IPlexSecretStore plexSecretStore, ILogger <PlexTvApiClient> logger) { _plexTvApi = plexTvApi; _plexSecretStore = plexSecretStore; _logger = logger; }