Interface GeolocateMessageContext
- All Superinterfaces:
MessageContext
The location looked up for a player's address.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.command.geolocate.model.GeolocateMessageContextImpl.GeolocateMessageContextImplBuilderbuilder()Starts building this context.@NonNull IpResponseresponse()The answer from the geolocation service.withResponse(@NonNull IpResponse response) 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, withUuid
-
Method Details
-
builder
static net.flectone.pulse.module.command.geolocate.model.GeolocateMessageContextImpl.GeolocateMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
response
@NonNull IpResponse response()The answer from the geolocation service.- Returns:
- the answer from the geolocation service
-
withResponse
Returns a copy carrying a different value.- Parameters:
response- the answer from the geolocation service- Returns:
- the copy
-