Package io.manebot.command.response
Class CommandListResponse<T>
- java.lang.Object
-
- io.manebot.command.response.CommandResponse
-
- io.manebot.command.response.CommandListResponse<T>
-
- Direct Known Subclasses:
DefaultBasicCommandListResponse,DefaultRichCommandListResponse
public abstract class CommandListResponse<T> extends CommandResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandListResponse.Builder<T>static classCommandListResponse.DefaultListElementFormatter<T>static interfaceCommandListResponse.ListAccessor<T>static interfaceCommandListResponse.ListElementFormatter<T>
-
Constructor Summary
Constructors Constructor Description CommandListResponse(ChatSender sender, long actualTotal, long page, int elementsPerPage, CommandListResponse.ListAccessor<T> accessor, CommandListResponse.ListElementFormatter<T> responder)
-
Method Summary
Modifier and Type Method Description CommandListResponse.ListAccessor<T>getAccessor()intgetElementsPerPage()longgetPage()CommandListResponse.ListElementFormatter<T>getResponder()longgetTotalElements()-
Methods inherited from class io.manebot.command.response.CommandResponse
getSender, send
-
-
-
-
Constructor Detail
-
CommandListResponse
public CommandListResponse(ChatSender sender, long actualTotal, long page, int elementsPerPage, CommandListResponse.ListAccessor<T> accessor, CommandListResponse.ListElementFormatter<T> responder)
-
-
Method Detail
-
getPage
public long getPage()
-
getTotalElements
public long getTotalElements()
-
getElementsPerPage
public int getElementsPerPage()
-
getAccessor
public CommandListResponse.ListAccessor<T> getAccessor()
-
getResponder
public CommandListResponse.ListElementFormatter<T> getResponder()
-
-