Example #1
0
 /// <summary>
 /// Creates a captcha service that authenticates via username and password.
 /// </summary>
 /// <param name="user">The username of the account</param>
 /// <param name="pass">The password of the account</param>
 /// <param name="timeout">The maximum time to wait for captcha completion</param>
 public CaptchaService(string user, string pass, int timeout)
 {
     User    = user;
     Pass    = pass;
     Timeout = timeout;
     Status  = CaptchaStatus.Idle;
 }
 public CaptchaResponse(CaptchaStatus status, string message)
 {
     Status  = status;
     Message = message;
 }
Example #3
0
 /// <summary>
 /// Creates a captcha service that authenticates via API key.
 /// </summary>
 /// <param name="apiKey">The API key of the account</param>
 /// <param name="timeout">The maximum time to wait for captcha completion</param>
 public CaptchaService(string apiKey, int timeout)
 {
     ApiKey  = apiKey;
     Timeout = timeout;
     Status  = CaptchaStatus.Idle;
 }
 public CaptchaResponse(CaptchaStatus status, string message, object identify) : this(status, message)
 {
     Identify = identify;
 }