Interface PollMessageContext
- All Superinterfaces:
MessageContext, StringMessageContext
A poll being created, voted on or closed.
Builds on
StringMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescription@NonNull PollModule.Actionaction()What was done to the poll.static net.flectone.pulse.module.command.poll.model.PollMessageContextImpl.PollMessageContextImplBuilderbuilder()Starts building this context.@NonNull Pollpoll()The poll.@NonNull PollModule.Statusstatus()How the poll answered the request.withAction(@NonNull PollModule.Action action) Returns a copy carrying a different value.Returns a copy carrying a different value.withStatus(@NonNull PollModule.Status status) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuidMethods inherited from interface StringMessageContext
string, withString
-
Method Details
-
builder
static net.flectone.pulse.module.command.poll.model.PollMessageContextImpl.PollMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
poll
-
status
@NonNull PollModule.Status status()How the poll answered the request.- Returns:
- how the poll answered the request
-
action
-
withPoll
Returns a copy carrying a different value.- Parameters:
poll- the poll- Returns:
- the copy
-
withStatus
Returns a copy carrying a different value.- Parameters:
status- how the poll answered the request- Returns:
- the copy
-
withAction
Returns a copy carrying a different value.- Parameters:
action- what was done to the poll- Returns:
- the copy
-