Class EntitlementPaginationActionImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<List<Entitlement>>
net.dv8tion.jda.internal.requests.restaction.pagination.PaginationActionImpl<Entitlement,EntitlementPaginationAction>
net.dv8tion.jda.internal.requests.restaction.pagination.EntitlementPaginationActionImpl
- All Implemented Interfaces:
Iterable<Entitlement>
,RestAction<@Unmodifiable List<Entitlement>>
,EntitlementPaginationAction
,PaginationAction<Entitlement,
EntitlementPaginationAction>
public class EntitlementPaginationActionImpl
extends PaginationActionImpl<Entitlement,EntitlementPaginationAction>
implements EntitlementPaginationAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction
PaginationAction.PaginationIterator<E>, PaginationAction.PaginationOrder
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexcludeEnded
(boolean excludeEnded) Whether to exclude subscriptions which have gone past their end date.The supportedPaginationOrders
for this pagination action.guild
(long guildId) FiltersEntitlement
s by a guild idskuIds
(long... skuIds) FiltersEntitlement
s by their SKU idFiltersEntitlement
s by their SKU idskuIds
(Collection<String> skuIds) FiltersEntitlement
s by their SKU iduser
(UserSnowflake user) FilterEntitlement
s to retrieve by the given user IDMethods inherited from class net.dv8tion.jda.internal.requests.restaction.pagination.PaginationActionImpl
cache, cacheSize, deadline, forEachAsync, forEachRemaining, forEachRemainingAsync, getCached, getFirst, getLast, getLastKey, getLimit, getMaxLimit, getMinLimit, getNextChunk, getOrder, isCacheEnabled, isEmpty, iterator, limit, order, setCheck, skipTo, takeAsync, takeRemainingAsync, timeout
Methods inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
complete, getCheck, getDefaultFailure, getDefaultSuccess, getDefaultTimeout, getJDA, handleResponse, isPassContext, priority, queue, setDefaultFailure, setDefaultSuccess, setDefaultTimeout, setErrorMapper, setPassContext, submit
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.pagination.EntitlementPaginationAction
guild, guild
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction
cache, cacheSize, deadline, forEachAsync, forEachAsync, forEachRemaining, forEachRemainingAsync, forEachRemainingAsync, getCached, getFirst, getLast, getLastKey, getLimit, getMaxLimit, getMinLimit, getOrder, isCacheEnabled, isEmpty, iterator, limit, order, parallelStream, reverse, setCheck, skipTo, spliterator, stream, takeAsync, takeRemainingAsync, takeUntilAsync, takeUntilAsync, takeWhileAsync, takeWhileAsync, timeout
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Constructor Details
-
EntitlementPaginationActionImpl
-
-
Method Details
-
getSupportedOrders
Description copied from interface:PaginationAction
The supportedPaginationOrders
for this pagination action.
All enum values that are not returned will cause a throw forPaginationAction.order(PaginationOrder)
.Most pagination endpoints only support a single order, however some endpoints such as message pagination supports both.
- Specified by:
getSupportedOrders
in interfacePaginationAction<Entitlement,
EntitlementPaginationAction> - Returns:
EnumSet
ofPaginationAction.PaginationOrder
(Modifying this set does not affect this class)
-
user
Description copied from interface:EntitlementPaginationAction
FilterEntitlement
s to retrieve by the given user ID- Specified by:
user
in interfaceEntitlementPaginationAction
- Parameters:
user
- TheUserSnowflake
used to filter ornull
to remove user filtering. This can be a member or user instance ofUser.fromId(long)
- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-
skuIds
Description copied from interface:EntitlementPaginationAction
FiltersEntitlement
s by their SKU id- Specified by:
skuIds
in interfaceEntitlementPaginationAction
- Parameters:
skuIds
- The SKU ids to filter by- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-
skuIds
Description copied from interface:EntitlementPaginationAction
FiltersEntitlement
s by their SKU id- Specified by:
skuIds
in interfaceEntitlementPaginationAction
- Parameters:
skuIds
- The SKU ids to filter by- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-
skuIds
Description copied from interface:EntitlementPaginationAction
FiltersEntitlement
s by their SKU id- Specified by:
skuIds
in interfaceEntitlementPaginationAction
- Parameters:
skuIds
- The SKU ids to filter by- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-
guild
Description copied from interface:EntitlementPaginationAction
FiltersEntitlement
s by a guild id- Specified by:
guild
in interfaceEntitlementPaginationAction
- Parameters:
guildId
- The guild id to filter by- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-
excludeEnded
Description copied from interface:EntitlementPaginationAction
Whether to exclude subscriptions which have gone past their end date.Test entitlements which are created through the API do not have an end date.
- Specified by:
excludeEnded
in interfaceEntitlementPaginationAction
- Parameters:
excludeEnded
- Whether to exclude ended subscriptions from returnedEntitlement
s- Returns:
- The current
EntitlementPaginationAction
for chaining convenience
-