Beispiel #1
0
        private ReceivedResult getReceiveds_common(String msg_ids, string path)
        {
            String          url    = REPORT_HOST_NAME + path + "?msg_ids=" + msg_ids;
            String          auth   = Base64Helper.GetBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper rsp    = this.sendGet(url, auth, null);
            ReceivedResult  result = new ReceivedResult();
            List <ReceivedResult.Received> list = new List <ReceivedResult.Received>();

            Console.WriteLine("recieve content==" + rsp.responseContent);
            if (rsp.responseCode == System.Net.HttpStatusCode.OK)
            {
                list = (List <ReceivedResult.Received>)JsonTool.JsonToObject(rsp.responseContent, list);
                String content = rsp.responseContent;
            }
            result.ResponseResult = rsp;
            result.ReceivedList   = list;
            return(result);
        }
Beispiel #2
0
        private ReceivedResult getReceiveds_common(String msg_ids, string path)
        {
            String url = REPORT_HOST_NAME + path + "?msg_ids=" + msg_ids;
            String auth = Base64Helper.GetBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper rsp = this.sendGet(url, auth, null);
            ReceivedResult result = new ReceivedResult();
            List<ReceivedResult.Received> list = new List<ReceivedResult.Received>();

            Console.WriteLine("recieve content==" + rsp.responseContent);
            if (rsp.responseCode == System.Net.HttpStatusCode.OK)
            {
                list = (List<ReceivedResult.Received>)JsonTool.JsonToObject(rsp.responseContent, list);
                String content = rsp.responseContent;
            }
            result.ResponseResult = rsp;
            result.ReceivedList = list;
            return result;
        }