Package io.micronaut.chatbots.core
Interface TextResourceLoader
-
- All Known Implementing Classes:
DefaultTextResourceLoader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@DefaultImplementation(DefaultTextResourceLoader.class) @FunctionalInterface public interface TextResourceLoader
Composes a static command response for a given command.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<CommandResponse>
composeCommandResponse(@NotBlank java.lang.String command)
Composes a static command response for a given command.
-
-
-
Method Detail
-
composeCommandResponse
@NonNull java.util.Optional<CommandResponse> composeCommandResponse(@NonNull @NotBlank @NotBlank java.lang.String command)
Composes a static command response for a given command.- Parameters:
command
- Command- Returns:
- static command response.
-
-