lib / com.kirkbushman.araw.fetcher / RedditorSearchFetcher

RedditorSearchFetcher

class RedditorSearchFetcher : Fetcher<Redditor, EnvelopedRedditor>

Constructors

<init>

RedditorSearchFetcher(api: RedditApi, query: String, limit: Long = DEFAULT_LIMIT, sorting: RedditorSearchSorting = DEFAULT_SORTING, timePeriod: TimePeriod = DEFAULT_TIMEPERIOD, showAll: Boolean = false, disableLegacyEncoding: Boolean = false, getHeader: () -> HashMap<String, String>)

Functions

getSorting

fun getSorting(): RedditorSearchSorting

getTimePeriod

fun getTimePeriod(): TimePeriod

onFetching

fun onFetching(forward: Boolean, dirToken: String?): Listing<EnvelopedRedditor>?

onMapResult

fun onMapResult(pagedData: Listing<EnvelopedRedditor>?): List<Redditor>

setSorting

fun setSorting(newSorting: RedditorSearchSorting): Unit

setTimePeriod

fun setTimePeriod(newTimePeriod: TimePeriod): Unit

Companion Object Properties

DEFAULT_SORTING

val DEFAULT_SORTING: RedditorSearchSorting

DEFAULT_TIMEPERIOD

val DEFAULT_TIMEPERIOD: TimePeriod