> + * 
> + * @author Epi Vou
> + */
> +@Singleton
> +public class BindConsoleToJsonPayload extends BindToJsonPayload {
> +
> +   @Inject
> +   public BindConsoleToJsonPayload(Json jsonBinder) {
> +      super(jsonBinder);
> +   }
> +
> +   @Override
> +   public <R extends HttpRequest> R bindToRequest(R request, Map<String, 
> Object> postParams) {
> +      String action = null;
> +
> +      Console.Type type = (Console.Type) postParams.get("type");

There might still be a way to simplify this further by convincing GSON to help 
out more! But I haven't tried it.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/339/files#r12869371

Reply via email to