fromResponse() public static method

public static fromResponse ( ResponseWrapper responseWrapper ) : MessagesResult
responseWrapper cn.jpush.api.common.ResponseWrapper
return MessagesResult
示例#1
0
        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));
        }