Пример #1
0
        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;
        }
Пример #2
0
        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);
        }