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
Modifier and TypeMethodDescription@NonNull Optional<CommandResponse>
composeCommandResponse
(@NonNull @NotBlank String command) Composes a static command response for a given command.
-
Method Details
-
composeCommandResponse
@NonNull @NonNull Optional<CommandResponse> composeCommandResponse(@NonNull @NotBlank @NonNull @NotBlank String command) Composes a static command response for a given command.- Parameters:
command
- Command- Returns:
- static command response.
-