public PrefopResult prefop() { PrefopResult prefopResult = null; CompletionHandler prefopCompletionHandler = new CompletionHandler(delegate(ResponseInfo respInfo, string response) { if (respInfo.isOk()) { prefopResult = StringUtils.jsonDecode<PrefopResult>(response); } else { prefopResult = new PrefopResult(); } prefopResult.ResponseInfo = respInfo; prefopResult.Response = response; }); string qUrl = string.Format(Config.ZONE.ApiHost + "/status/get/prefop?id={0}", this.PersistentId); this.mHttpManager.get(qUrl, null, prefopCompletionHandler); return prefopResult; }
public PrefopResult prefop() { PrefopResult prefopResult = null; CompletionHandler prefopCompletionHandler = new CompletionHandler(delegate(ResponseInfo respInfo, string response) { if (respInfo.isOk()) { prefopResult = StringUtils.jsonDecode <PrefopResult>(response); } else { prefopResult = new PrefopResult(); } prefopResult.ResponseInfo = respInfo; prefopResult.Response = response; }); string qUrl = string.Format(Config.ZONE.ApiHost + "/status/get/prefop?id={0}", this.PersistentId); this.mHttpManager.get(qUrl, null, prefopCompletionHandler); return(prefopResult); }