public APICall <GetCaptchaOperation> GetCaptcha(CaptchaType type, int?width, int?height) { GetCaptchaOperation getCaptchaOperation = new GetCaptchaOperation(type); if (width.HasValue) { getCaptchaOperation.Width = width; } if (height.HasValue) { getCaptchaOperation.Height = height; } return(new APICall <GetCaptchaOperation>(clubPenguinClient, getCaptchaOperation)); }
private void onGetCaptcha(GetCaptchaOperation operation, HttpResponse httpResponse) { CaptchaData responseBody = operation.ResponseBody; Service.Get <EventDispatcher>().DispatchEvent(new CaptchaServiceEvents.CaptchaLoaded(responseBody)); }