SMSLib 3.5.3

org.smslib
Class StatusReportMessage

java.lang.Object
  extended by org.smslib.Message
      extended by org.smslib.InboundMessage
          extended by org.smslib.StatusReportMessage
All Implemented Interfaces:
java.io.Serializable

public class StatusReportMessage
extends InboundMessage

Class representing an delivery/status report message.

See Also:
Serialized Form

Nested Class Summary
static class StatusReportMessage.DeliveryStatuses
          Enumeration representing delivery (status report) message status.
 
Nested classes/interfaces inherited from class org.smslib.InboundMessage
InboundMessage.MessageClasses
 
Nested classes/interfaces inherited from class org.smslib.Message
Message.MessageEncodings, Message.MessageTypes
 
Constructor Summary
StatusReportMessage(org.ajwcc.pduUtils.gsm3040.SmsStatusReportPdu pdu, int memIndex, java.lang.String memLocation)
           
StatusReportMessage(java.lang.String myRefNo, int memIndex, java.lang.String memLocation, java.util.Date dateOriginal, java.util.Date dateReceived)
           
StatusReportMessage(java.lang.String myRefNo, java.lang.String srcAddress, java.lang.String destAddress, java.lang.String text, java.util.Date dateOriginal, java.util.Date dateReceived)
           
 
Method Summary
 java.util.Date getReceived()
          Returns the date that the recipient received the original outbound message.
 java.lang.String getRecipient()
          Returns the recipient of the original outbound message that created this status report.
 java.lang.String getRefNo()
          Returns the Reference Number of the original outbound message that this status report refers to.
 java.util.Date getSent()
          Returns the date when the original outbound message was sent.
 StatusReportMessage.DeliveryStatuses getStatus()
          The status of the original outbound message.
 void setReceived(java.util.Date myReceived)
           
 void setSent(java.util.Date mySent)
           
 void setStatus(StatusReportMessage.DeliveryStatuses myStatus)
           
 
Methods inherited from class org.smslib.InboundMessage
addText, getEndsWithMultiChar, getMemIndex, getMemLocation, getMpMaxNo, getMpMemIndex, getMpRefNo, getMpSeqNo, getOriginator, getPduUserData, getPduUserDataHeader, getSmscNumber, setEndsWithMultiChar, setMemIndex, setMemLocation, setMpMaxNo, setMpMemIndex, setMpRefNo, setMpSeqNo, toString
 
Methods inherited from class org.smslib.Message
getDate, getDCSMessageClass, getDstPort, getEncoding, getGatewayId, getId, getMessageId, getSrcPort, getText, getType, getUuid, setDate, setDCSMessageClass, setDstPort, setEncoding, setGatewayId, setId, setSrcPort, setText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusReportMessage

public StatusReportMessage(org.ajwcc.pduUtils.gsm3040.SmsStatusReportPdu pdu,
                           int memIndex,
                           java.lang.String memLocation)

StatusReportMessage

public StatusReportMessage(java.lang.String myRefNo,
                           int memIndex,
                           java.lang.String memLocation,
                           java.util.Date dateOriginal,
                           java.util.Date dateReceived)

StatusReportMessage

public StatusReportMessage(java.lang.String myRefNo,
                           java.lang.String srcAddress,
                           java.lang.String destAddress,
                           java.lang.String text,
                           java.util.Date dateOriginal,
                           java.util.Date dateReceived)
Method Detail

getRecipient

public java.lang.String getRecipient()
Returns the recipient of the original outbound message that created this status report.

Returns:
The recipient of the original outbound message.

getReceived

public java.util.Date getReceived()
Returns the date that the recipient received the original outbound message.

Returns:
The receive date.
See Also:
getSent()

setReceived

public void setReceived(java.util.Date myReceived)

getSent

public java.util.Date getSent()
Returns the date when the original outbound message was sent.

Returns:
The sent date.
See Also:
getReceived()

setSent

public void setSent(java.util.Date mySent)

getStatus

public StatusReportMessage.DeliveryStatuses getStatus()
The status of the original outbound message. Use this field to see what happened with the original message.

Returns:
The status of the outbound message;
See Also:
StatusReportMessage.DeliveryStatuses

setStatus

public void setStatus(StatusReportMessage.DeliveryStatuses myStatus)

getRefNo

public java.lang.String getRefNo()
Returns the Reference Number of the original outbound message that this status report refers to.

Returns:
The Reference Number of the original outbound message.

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org