/** * Create an instance of GetVoiceMailListResp . * * <p>Description: * * @param msg */ public GetVoiceMailListResp(BaseMsg msg) { super(msg); GetVoiceMailListAck ack = (GetVoiceMailListAck) msg; this.status = ResponseCodeHandler.getResponseCode(ResponseCodeHandler.ServerType.MAA, ack.getRetval()); this.desc = ack.getDesc(); voiceMessageList = new ArrayList<VoiceMessage>(); if (ack.getList() != null) { for (com.huawei.ecs.mip.msg.GetVoiceMailListAck.Message voice : ack.getList()) { voiceMessageList.add(new VoiceMessage(voice)); } } }
private MatchMobileResp parserMessage(BaseMsg msg) { MatchMobileResp response = null; if (msg != null) { response = new MatchMobileResp(msg); QueryMobileAck ack = (QueryMobileAck) msg; response.setStatus(ResponseCodeHandler.getResponseCode(ServerType.MAA, ack.getRetval())); if (ack.getRetval() == 0) { response.setList(ack.getList()); } response.setDesc(ack.getDesc()); } return response; }
private static BaseResponseData parserMessage(BaseMsg msg) { QueryVersionHistoryResp response = null; if (msg != null) { response = new QueryVersionHistoryResp(msg); QueryVersionHistoryAck ack = (QueryVersionHistoryAck) msg; response.setStatus( ResponseCodeHandler.getResponseCode(ResponseCodeHandler.ServerType.MAA, ack.getRetval())); if (ack.getRetval() == 0) { response.setVersionContent(ack.getBody()); } response.setDesc(ack.getDesc()); } return response; }