示例#1
0
    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));
    }
示例#2
0
    private void onGetCaptcha(GetCaptchaOperation operation, HttpResponse httpResponse)
    {
        CaptchaData responseBody = operation.ResponseBody;

        Service.Get <EventDispatcher>().DispatchEvent(new CaptchaServiceEvents.CaptchaLoaded(responseBody));
    }