AutomarshalledPagedAction

abstract class AutomarshalledPagedAction<Token, ItemType : Any, PageType : Paged<Token, ItemType>, Self : AutomarshalledPagedAction<Token, ItemType, PageType, Self>>(toResult: (List<ItemType>, Token?) -> PageType, autoMarshalling: AutoMarshalling, kClass: KClass<PageType>) : PagedAction<Token, ItemType, PageType, Self> , LensExtractor<Response, Token?> (source)

Superclass for paged actions where the response can be auto-marshalled

Constructors

Link copied to clipboard
constructor(toResult: (List<ItemType>, Token?) -> PageType, autoMarshalling: AutoMarshalling, kClass: KClass<PageType>)

Functions

Link copied to clipboard
fun <R> Action<R>.asRemoteFailure(response: Response): RemoteFailure
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun extract(target: Response): Token?
Link copied to clipboard
open operator fun <R : Response> get(target: R): Token?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
abstract operator override fun invoke(target: Response): Token?
Link copied to clipboard
abstract fun next(token: Token): Self
Link copied to clipboard
open fun <NEXT : Response> restrictFrom(): LensExtractor<NEXT, Token?>
Link copied to clipboard
abstract fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<PageType, RemoteFailure>