ListAPIResult

sealed class ListAPIResult<out T, out P>

Result type of an API that returns a list. Supports partial results.

Inheritors

Types

Link copied to clipboard
data class ListPartialResult<T, P>(val items: List<T>, val failed: List<PartialResult<P>>, val nextToken: String?)

Represents a partial list result.

Link copied to clipboard
data class ListSuccessResult<T>(val items: List<T>, val nextToken: String?)

Represents a successful list result.

Link copied to clipboard
data class Partial<T, P>(val result: ListAPIResult.ListPartialResult<T, P>) : ListAPIResult<T, P>

Result is partial and returns a list of mixed success and partial results and an exception for each partial result indicating the failure.

Link copied to clipboard

Result is a success and returns a list of all results.