// Path: src/main/java/io/chucknorris/api/slack/RequestArgumentResolver.java
// public class RequestArgumentResolver implements HandlerMethodArgumentResolver {
// 
//   @Override
//   public boolean supportsParameter(MethodParameter methodParameter) {
//     return methodParameter.getParameterType().equals(Request.class);
//   }
// 
//   @Override
//   public Object resolveArgument(MethodParameter methodParameter,
//       ModelAndViewContainer modelAndViewContainer,
//       NativeWebRequest nativeWebRequest,
//       WebDataBinderFactory webDataBinderFactory) {
//     Request request = new Request();
// 
//     request.setChannelId(nativeWebRequest.getParameter("channel_id"));
//     request.setChannelName(nativeWebRequest.getParameter("channel_name"));
//     request.setCommand(nativeWebRequest.getParameter("command"));
//     request.setEnterpriseId(nativeWebRequest.getParameter("enterprise_id"));
//     request.setEnterpriseName(nativeWebRequest.getParameter("enterprise_name"));
//     request.setResponseUrl(nativeWebRequest.getParameter("response_url"));
//     request.setTeamDomain(nativeWebRequest.getParameter("team_domain"));
//     request.setTeamId(nativeWebRequest.getParameter("team_id"));
//     request.setText(nativeWebRequest.getParameter("text"));
//     request.setToken(nativeWebRequest.getParameter("token"));
//     request.setTriggerId(nativeWebRequest.getParameter("trigger_id"));
//     request.setUserId(nativeWebRequest.getParameter("user_id"));
//     request.setUserName(nativeWebRequest.getParameter("user_name"));
// 
//     return request;
//   }
// }


import io.chucknorris.api.slack.RequestArgumentResolver;
import java.util.List;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
package io.chucknorris.api.configuration;


@Configuration
public class ResolverConfig implements WebMvcConfigurer {

  public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
// Path: src/main/java/io/chucknorris/api/slack/RequestArgumentResolver.java
// public class RequestArgumentResolver implements HandlerMethodArgumentResolver {
// 
//   @Override
//   public boolean supportsParameter(MethodParameter methodParameter) {
//     return methodParameter.getParameterType().equals(Request.class);
//   }
// 
//   @Override
//   public Object resolveArgument(MethodParameter methodParameter,
//       ModelAndViewContainer modelAndViewContainer,
//       NativeWebRequest nativeWebRequest,
//       WebDataBinderFactory webDataBinderFactory) {
//     Request request = new Request();
// 
//     request.setChannelId(nativeWebRequest.getParameter("channel_id"));
//     request.setChannelName(nativeWebRequest.getParameter("channel_name"));
//     request.setCommand(nativeWebRequest.getParameter("command"));
//     request.setEnterpriseId(nativeWebRequest.getParameter("enterprise_id"));
//     request.setEnterpriseName(nativeWebRequest.getParameter("enterprise_name"));
//     request.setResponseUrl(nativeWebRequest.getParameter("response_url"));
//     request.setTeamDomain(nativeWebRequest.getParameter("team_domain"));
//     request.setTeamId(nativeWebRequest.getParameter("team_id"));
//     request.setText(nativeWebRequest.getParameter("text"));
//     request.setToken(nativeWebRequest.getParameter("token"));
//     request.setTriggerId(nativeWebRequest.getParameter("trigger_id"));
//     request.setUserId(nativeWebRequest.getParameter("user_id"));
//     request.setUserName(nativeWebRequest.getParameter("user_name"));
// 
//     return request;
//   }
// }


// Path: src/main/java/io/chucknorris/api/configuration/ResolverConfig.java
import io.chucknorris.api.slack.RequestArgumentResolver;
import java.util.List;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

package io.chucknorris.api.configuration;


@Configuration
public class ResolverConfig implements WebMvcConfigurer {

  public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
    argumentResolvers.add(new RequestArgumentResolver());