public async Task <SonarrTvShow> AddTvShowAsync(SonarrTvShowRequest tvShow, CancellationToken cancellationToken) { tvShow.RootFolderPath = _config.SaveLocation; var request = new HttpRequestMessage(HttpMethod.Post, new Uri($"{_config.Url}api/series?apikey={_config.Key}")) { Content = new StringContent(JsonConvert.SerializeObject(tvShow)) }; return(await SendRequest <SonarrTvShow>(request, cancellationToken)); }
public AddTvShowCommand(SonarrTvShowRequest tvShow) { TvShow = tvShow; }