public interface BotHandlerMethodArgumentResolver
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveArgument(@NotNull org.springframework.core.MethodParameter parameter,
@NotNull TelegramRequest telegramRequest,
@NotNull TelegramSession telegramSession)
Resolve the current method parameter Resolves a method parameter into an argument value from a given request.
|
boolean |
supportsParameter(@NotNull org.springframework.core.MethodParameter methodParameter)
Whether the given method parameter is
supported by this resolver.
|
boolean supportsParameter(@NotNull
@NotNull org.springframework.core.MethodParameter methodParameter)
methodParameter - the method parameter to checktrue if this resolver supports the supplied parameter;
false otherwise@Nullable Object resolveArgument(@NotNull @NotNull org.springframework.core.MethodParameter parameter, @NotNull @NotNull TelegramRequest telegramRequest, @NotNull @NotNull TelegramSession telegramSession)
parameter - the method parameter to resolve. This parameter must have previously been passed to supportsParameter(org.springframework.core.MethodParameter) which must have returned true. telegramRequest - the current telegram requesttelegramSession - the current session null if not resolvableCopyright © 2022. All rights reserved.