Package com.mewna.catnip.util.pagination
Class AuditLogPaginator
java.lang.Object
com.mewna.catnip.util.pagination.BasePaginator<AuditLogEntry,com.grack.nanojson.JsonObject,AuditLogPaginator>
com.mewna.catnip.util.pagination.AuditLogPaginator
public abstract class AuditLogPaginator
extends BasePaginator<AuditLogEntry,com.grack.nanojson.JsonObject,AuditLogPaginator>
- Since:
- 10/9/18.
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mewna.catnip.util.pagination.BasePaginator
BasePaginator.RequestState<T>
-
Field Summary
Fields inherited from class com.mewna.catnip.util.pagination.BasePaginator
idOf, limit, maxRequestSize, requestSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Observable<UnitHelper.Unit>
fetch
(PaginationCallback<AuditLogEntry> action) type
(ActionType type) Filters what type of entries to fetch.protected void
update
(BasePaginator.RequestState<AuditLogEntry> state, com.grack.nanojson.JsonObject data) Filters from which user to fetch.Methods inherited from class com.mewna.catnip.util.pagination.BasePaginator
fetch, fetch, fetchNext, fetchWhile, forEach, limit, requestSize
-
Constructor Details
-
AuditLogPaginator
-
-
Method Details
-
user
Filters from which user to fetch.- Parameters:
userId
- Author of the wanted entries.- Returns:
this
, for chaining calls.
-
type
Filters what type of entries to fetch.- Parameters:
type
- Type of the wanted entries.- Returns:
this
, for chaining calls.
-
fetch
@Nonnull protected io.reactivex.rxjava3.core.Observable<UnitHelper.Unit> fetch(@Nonnull PaginationCallback<AuditLogEntry> action) - Overrides:
fetch
in classBasePaginator<AuditLogEntry,
com.grack.nanojson.JsonObject, AuditLogPaginator>
-
update
protected void update(@Nonnull BasePaginator.RequestState<AuditLogEntry> state, @Nonnull com.grack.nanojson.JsonObject data) - Specified by:
update
in classBasePaginator<AuditLogEntry,
com.grack.nanojson.JsonObject, AuditLogPaginator>
-