Пример #1
0
        private void provideResponse(JObject jsonResponse, object parsedModel)
        {
            VKResponse response = new VKResponse();
            response.parsedModel = parsedModel;

            if (PostRequestsQueue != null && PostRequestsQueue.Count > 0)
            {
                foreach (AbstractRequest request in PostRequestsQueue)
                {
                    request.GetResponse();
                }
            }

            OnComplete(response);
        }
Пример #2
0
        protected void provideResponse(VKResponse response)
        {
            mResponses[indexOfRequest(response.request)] = response;
            foreach (VKResponse resp in mResponses)
                if (resp == null) return;

            if (Complete != null)
                Complete(this, response);
        }
Пример #3
0
 protected virtual void OnComplete(VKResponse e)
 {
     var handler = Complete;
     if (handler != null) handler(this, e);
 }