예제 #1
0
 /// <summary>
 /// Gets a list of deliveries.
 /// </summary>
 /// <param name="input">The input required to list deliveries.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>A <see cref="PagedApiList{T}"/> of <see cref="DeliveryDetails"/> objects.</returns>
 public Task <PagedApiList <DeliveryDetails> > ListAsync(DeliveryListInput input, CancellationToken cancellationToken = default)
 {
     Ensure.NotNull(input, nameof(input));
     return(GetRequestAsync <PagedApiList <DeliveryDetails> >(string.Empty, input, cancellationToken));
 }
예제 #2
0
 /// <summary>
 /// Gets a list of deliveries.
 /// </summary>
 /// <param name="input">The input required to list deliveries.</param>
 /// <returns>A <see cref="PagedApiList{T}"/> of <see cref="DeliveryDetails"/> objects.</returns>
 public PagedApiList <DeliveryDetails> List(DeliveryListInput input)
 {
     Ensure.NotNull(input, nameof(input));
     return(GetRequest <PagedApiList <DeliveryDetails> >(string.Empty, input));
 }