com.perimeterx.models.httpmodels.CaptchaRequest Maven / Gradle / Ivy
package com.perimeterx.models.httpmodels;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.perimeterx.models.PXContext;
import com.perimeterx.models.risk.Request;
/**
* CaptchaRequest model
*
* Created by shikloshi on 07/07/2016.
*/
public class CaptchaRequest {
@JsonProperty("request")
public Request Request;
@JsonProperty("vid")
public String Vid;
@JsonProperty("pxCaptcha")
public String PxCaptcha;
@JsonProperty("hostname")
public String Hostname;
public static CaptchaRequest fromContext(PXContext context) {
CaptchaRequest captchaRequest = new CaptchaRequest();
captchaRequest.Request = com.perimeterx.models.risk.Request.fromContext(context);
captchaRequest.PxCaptcha = context.getPxCaptcha();
captchaRequest.Vid = context.getVid();
captchaRequest.Hostname = context.getHostname();
return captchaRequest;
}
}