コード例 #1
0
ファイル: ReportClient.cs プロジェクト: imgd/C-PushRemind
        private MessagesResult getReportMessages(String msgIds)
        {
            String          checkMsgId = checkMsgids(msgIds);
            String          url        = REPORT_HOST_NAME + REPORT_RECEIVE_PATH + "?msg_ids=" + checkMsgId;
            String          auth       = Base64.getBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper response   = this.sendGet(url, auth, null);

            return(MessagesResult.fromResponse(response));
        }
コード例 #2
0
ファイル: MessagesResult.cs プロジェクト: imgd/C-PushRemind
 public static MessagesResult fromResponse(ResponseWrapper responseWrapper)
 {
     MessagesResult receivedsResult = new MessagesResult();
     if (responseWrapper.responseCode==HttpStatusCode.OK)
     {
         receivedsResult.messages = JsonConvert.DeserializeObject<List<Message>>(responseWrapper.responseContent);
     }
     receivedsResult.ResponseResult = responseWrapper;
     return receivedsResult;
 }
コード例 #3
0
        public static MessagesResult fromResponse(ResponseWrapper responseWrapper)
        {
            MessagesResult receivedsResult = new MessagesResult();

            if (responseWrapper.responseCode == HttpStatusCode.OK)
            {
                receivedsResult.messages = JsonConvert.DeserializeObject <List <Message> >(responseWrapper.responseContent);
            }
            receivedsResult.ResponseResult = responseWrapper;
            return(receivedsResult);
        }