TMDbLib/Client/TMDbClientLists.cs
/// <summary>
/// Retrieve a list by it's id
/// </summary>
/// <param name="listId">The id of the list you want to retrieve</param>
/// <param name="cancellationToken">A cancellation token</param>
Retrieve a list by it's id
Retrieve a list by it ' s id
public async Task<GenericList> GetListAsync(string listId, CancellationToken cancellationToken = default)
        {
            if (string.IsNullOrWhiteSpace(listId))
                throw new ArgumentNullException(nameof(listId));
            RestRequest req = _client.Create("list/{listId}");
            req.AddUrlSegment("listId", listId);
            GenericList resp = await req.GetOfT<GenericList>(cancellationToken).ConfigureAwait(false);
            return resp;
        }
public async Task < GenericList > GetListAsync ( string listId , CancellationToken cancellationToken = default ) { if ( string . IsNullOrWhiteSpace ( listId ) ) throw new ArgumentNullException ( nameof ( listId ) ) ; RestRequest req = _client . Create ( " " ) ; req . AddUrlSegment ( " " , listId ) ; GenericList resp = await req . GetOfT < GenericList > ( cancellationToken ) . ConfigureAwait ( false ) ; return resp ; }
Retrieve a list by it's id
Retrieve a list by it ' s id
listId
string
The id of the list you want to retrieve
The id of the list you want to retrieve
cancellationToken
CancellationToken
A cancellation token
A cancellation token