FileDocCategorySizeDatePackage
ReadRecInd.javaAPI DocAndroid 5.1 API4008Thu Mar 12 22:22:54 GMT 2015com.google.android.mms.pdu

ReadRecInd

public class ReadRecInd extends GenericPdu

Fields Summary
Constructors Summary
public ReadRecInd(EncodedStringValue from, byte[] messageId, int mmsVersion, int readStatus, EncodedStringValue[] to)
Constructor, used when composing a M-ReadRec.ind pdu.

param
from the from value
param
messageId the message ID value
param
mmsVersion current viersion of mms
param
readStatus the read status value
param
to the to value
throws
InvalidHeaderValueException if parameters are invalid. NullPointerException if messageId or to is null.

        super();
        setMessageType(PduHeaders.MESSAGE_TYPE_READ_REC_IND);
        setFrom(from);
        setMessageId(messageId);
        setMmsVersion(mmsVersion);
        setTo(to);
        setReadStatus(readStatus);
    
ReadRecInd(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 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 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);