using System.Collections.Generic;
using System.Threading.Tasks;
namespace Octokit.AsyncPaginationExtension
{
///
/// additionally allowing for random access.
///
///
///
/// Intended to abstract from a series of a API calls requiring pagination.
///
///
/// Intended to be implemented supporting caching, making repeated enumerations not require any API calls.
///
///
/// The type of values to access.
public interface IPaginatedList : IAsyncEnumerable
{
///
/// Gets a value at the specified index.
///
/// The index at which to fetch the value.
/// The value at the specified index or null if it is outside of the range.
public Task this[int index] { get; }
}
}