private void setCommon(ref AtCommandResponse target) { target.setApiId(getApiId()); target.setAvailable(isAvailable()); target.setChecksum(getChecksum()); target.setErrorCode(getErrorCode()); target.setFrameLength(getFrameDataLength()); target.setMsbLength(getMsbLength()); target.setLsbLength(getLsbLength()); }
/** * Call with instance of AtCommandResponse only if getApiId() == AT_COMMAND_RESPONSE */ public void getAtCommandResponse(ref AtCommandResponse response) { response.setFrameData(getFrameData()); setCommon(ref response); }