FileDocCategorySizeDatePackage
DeliveryInd.javaAPI DocAndroid 1.5 API3674Wed May 06 22:41:56 BST 2009com.google.android.mms.pdu

DeliveryInd

public class DeliveryInd extends GenericPdu
M-Delivery.Ind Pdu.

Fields Summary
Constructors Summary
public DeliveryInd()
Empty constructor. Since the Pdu corresponding to this class is constructed by the Proxy-Relay server, this class is only instantiated by the Pdu Parser.

throws
InvalidHeaderValueException if error occurs.

        super();
        setMessageType(PduHeaders.MESSAGE_TYPE_DELIVERY_IND);
    
DeliveryInd(PduHeaders headers)
Constructor with given headers.

param
headers Headers for this PDU.

        super(headers);
    
Methods Summary
public longgetDate()
Get Date value.

return
the value

        return mPduHeaders.getLongInteger(PduHeaders.DATE);
    
public byte[]getMessageId()
Get Message-ID value.

return
the value

        return mPduHeaders.getTextString(PduHeaders.MESSAGE_ID);
    
public intgetStatus()
Get Status value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.STATUS);
    
public EncodedStringValue[]getTo()
Get To value.

return
the value

        return mPduHeaders.getEncodedStringValues(PduHeaders.TO);
    
public voidsetDate(long value)
Set Date value.

param
value the value

        mPduHeaders.setLongInteger(value, PduHeaders.DATE);
    
public voidsetMessageId(byte[] value)
Set Message-ID value.

param
value the value, should not be null
throws
NullPointerException if the value is null.

        mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID);
    
public voidsetStatus(int value)
Set Status value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid.

        mPduHeaders.setOctet(value, PduHeaders.STATUS);
    
public voidsetTo(EncodedStringValue[] value)
set To value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setEncodedStringValues(value, PduHeaders.TO);