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

ReadOrigInd

public class ReadOrigInd extends GenericPdu

Fields Summary
Constructors Summary
public ReadOrigInd()
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_READ_ORIG_IND);
    
ReadOrigInd(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 EncodedStringValuegetFrom()
Get From value. From-value = Value-length (Address-present-token Encoded-string-value | Insert-address-token)

return
the value

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

return
the value

        return mPduHeaders.getTextString(PduHeaders.MESSAGE_ID);
    
public intgetReadStatus()
Get X-MMS-Read-status value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.READ_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 voidsetFrom(EncodedStringValue value)
Set From value.

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

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

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

        mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID);
    
public voidsetReadStatus(int value)
Set X-MMS-Read-status value.

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

        mPduHeaders.setOctet(value, PduHeaders.READ_STATUS);
    
public voidsetTo(EncodedStringValue[] value)
Set To value.

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

        mPduHeaders.setEncodedStringValues(value, PduHeaders.TO);