TMDbLib/Client/TMDbClientTvEpisodeGroups.cs
/// <summary>
/// Retrieve a collection of tv episode groups by id
/// </summary>
/// <param name="id">Episode group id</param>
/// <param name="language">If specified the api will attempt to return a localized result. ex: en,it,es </param>
/// <param name="cancellationToken">A cancellation token</param>
/// <returns>The requested collection of tv episode groups</returns>
Retrieve a collection of tv episode groups by id
Retrieve a collection of tv episode groups by id
public async Task<TvGroupCollection> GetTvEpisodeGroupsAsync(string id, string language = null, CancellationToken cancellationToken = default)
        {
            RestRequest req = _client.Create("tv/episode_group/{id}");
            req.AddUrlSegment("id", id);
            language ??= DefaultLanguage;
            if (!string.IsNullOrWhiteSpace(language))
                req.AddParameter("language", language);
            RestResponse<TvGroupCollection> response = await req.Get<TvGroupCollection>(cancellationToken).ConfigureAwait(false);
            if (!response.IsValid)
                return null;
            return await response.GetDataObject().ConfigureAwait(false);
        }
public async Task < TvGroupCollection > GetTvEpisodeGroupsAsync ( string id , string language = null , CancellationToken cancellationToken = default ) { RestRequest req = _client . Create ( " " ) ; req . AddUrlSegment ( " " , id ) ; language ??= DefaultLanguage ; if ( ! string . IsNullOrWhiteSpace ( language ) ) req . AddParameter ( " " , language ) ; RestResponse < TvGroupCollection > response = await req . Get < TvGroupCollection > ( cancellationToken ) . ConfigureAwait ( false ) ; if ( ! response . IsValid ) return null ; return await response . GetDataObject ( ) . ConfigureAwait ( false ) ; }
Retrieve a collection of tv episode groups by id
Retrieve a collection of tv episode groups by id
The requested collection of tv episode groups
The requested collection of tv episode groups
id
string
Episode group id
Episode group id
language
string
If specified the api will attempt to return a localized result. ex: en,it,es
If specified the api will attempt to return a localized result . ex : en it es
cancellationToken
CancellationToken
A cancellation token
A cancellation token