lib / com.kirkbushman.araw.fetcher / CommentsFetcher

CommentsFetcher

class CommentsFetcher : Fetcher<CommentData, EnvelopedCommentData>

Constructors

<init>

CommentsFetcher(api: RedditApi, submissionId: String, focusedCommentId: String? = null, focusedCommentParentsNum: Int? = null, sorting: CommentsSorting, depth: Int?, limit: Long = DEFAULT_LIMIT, disableLegacyEncoding: Boolean = false, getHeader: () -> HashMap<String, String>)

Functions

getFocusedCommentId

fun getFocusedCommentId(): String?

getSorting

fun getSorting(): CommentsSorting

getSubmission

fun getSubmission(): Submission?

onFetching

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

onMapResult

fun onMapResult(pagedData: Listing<EnvelopedCommentData>?): List<CommentData>

setSorting

fun setSorting(newSorting: CommentsSorting): Unit

Companion Object Properties

DEFAULT_SORTING

val DEFAULT_SORTING: CommentsSorting