/// <summary> /// List drivers asynchronously. /// </summary> /// <param name="input">The input for the request.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>An <see cref="ApiList{T}"/> of <see cref="Driver"/> objects.</returns> public Task <ApiList <Driver> > ListAsync(DriverListInput input, CancellationToken cancellationToken = default) { Ensure.NotNull(input, nameof(input)); return(GetRequestAsync <ApiList <Driver> >(string.Empty, input, cancellationToken)); }
/// <summary> /// List drivers. /// </summary> /// <param name="input">The input for the request.</param> /// <returns>An <see cref="ApiList{T}"/> of <see cref="Driver"/> objects.</returns> public ApiList <Driver> List(DriverListInput input) { Ensure.NotNull(input, nameof(input)); return(GetRequest <ApiList <Driver> >(string.Empty, input)); }