Version

QuerySmResp

Corresponding SMPP Command: query_sm_resp
Extends: PduResponse
QuerySmResp represents the SMPP query_sm_resp PDU. It is returned by the SMSC in response to a QuerySm request, providing information about the delivery status of a previously submitted message. The response includes the message_id, final delivery date, message state, and an error code (if applicable).

Fields inherited from class com.mobius.software.protocols.smpp.Pdu

PDU_HEADER_LENGTH, PDU_INT_LENGTH

Constructor:

public QuerySmResp()
Initializes an empty QuerySmResp instance. The fields can be set using setter methods after the instance is created.

Methods:

String getMessageId() Gets the message ID of the queried message.
void setMessageId(String iMessageId) Sets the message ID to be returned in the response.
String getFinalDate() Gets the final delivery date of the message (if known).
void setFinalDate(String iFinalDate) Sets the final delivery date.
byte getMessageState() Returns the delivery state (e.g. delivered, expired, undeliverable).
void setMessageState(byte iMessageState) Sets the current state of the message.
byte getErrorCode() Returns the error code, if any, associated with the message status.
void setErrorCode(byte iErrorCode) Sets the error code.
void readBody(ByteBuf buffer) Deserializes the body content from binary.
void writeBody(ByteBuf buffer) Serializes the body into binary format.
int calculateByteSizeOfBody() Calculates the size of the PDU body in bytes.
void appendBodyToString(StringBuilder buffer) Appends a string summary of body fields for logging/debugging.

Methods inherited from class com.mobius.software.protocols.smpp.PduResponse

getResultMessage, setResultMessage

Methods inherited from class com.mobius.software.protocols.smpp.Pdu

addOptionalParameter, calculateAndSetCommandLength, getCommandId, getCommandLength, getCommandStatus, getName, getOptionalParameter, getOptionalParameterCount, getOptionalParameters, getReferenceObject, getSequenceNumber, hasCommandLengthCalculated, hasOptionalParameter, hasSequenceNumberAssigned, isRequest, isResponse, readOptionalParameters, removeCommandLength, removeOptionalParameter, removeSequenceNumber, setCommandLength, setCommandStatus, setOptionalParameter, setReferenceObject, setSequenceNumber, toString, writeOptionalParameters

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Start innovating with Mobius

What's next? Let's talk!

Mobius Software

As a company you'll get:

  • Get started quickly

  • Support any business model

  • Join millions of businesses

Questions? websupport@mobius.com