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); }
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); }
protected virtual void OnComplete(VKResponse e) { var handler = Complete; if (handler != null) handler(this, e); }