Example #1
0
        /// <inheritdoc />
        public Task <Show> GetShowMainInformationAsync(int showId, ShowEmbeddingFlags embeddings = ShowEmbeddingFlags.None)
        {
            if (showId <= 0)
            {
                throw new ArgumentException(nameof(showId));
            }

            return(_httpClient.GetAsync <Show>(ShowEmbeddings.AddQueryStringToUrl($"shows/{showId}", embeddings)));
        }
Example #2
0
        /// <inheritdoc />
        public Task <Show> ShowSingleSearchAsync(string query, ShowEmbeddingFlags embeddings = ShowEmbeddingFlags.None)
        {
            if (string.IsNullOrWhiteSpace(query))
            {
                throw new ArgumentNullException(nameof(query));
            }

            return(_httpClient.GetAsync <Show>(ShowEmbeddings.AddQueryStringToUrl($"singlesearch/shows?q={query}", embeddings)));
        }