* (non-Javadoc)
*
* @see org.jsmpp.util.PDUDecomposer#querySmResp(byte[])
*/
public QuerySmResp querySmResp(byte[] b) throws PDUStringException {
QuerySmResp resp = new QuerySmResp();
SequentialBytesReader reader = new SequentialBytesReader(b);
assignHeader(resp, reader);
if (resp.getCommandLength() > 16 && resp.getCommandStatus() == 0) {
resp.setMessageId(reader.readCString());
StringValidator.validateString(resp.getMessageId(),
StringParameter.MESSAGE_ID);
resp.setFinalDate(reader.readCString());
StringValidator.validateString(resp.getFinalDate(),
StringParameter.FINAL_DATE);
resp.setMessageState(MessageState.valueOf(reader.readByte()));
resp.setErrorCode(reader.readByte());
}
return resp;
}