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 class
CommandListResponse.Builder<T>
static class
CommandListResponse.DefaultListElementFormatter<T>
static interface
CommandListResponse.ListAccessor<T>
static interface
CommandListResponse.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()
int
getElementsPerPage()
long
getPage()
CommandListResponse.ListElementFormatter<T>
getResponder()
long
getTotalElements()
-
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()
-
-