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

AcknowledgeInd

public class AcknowledgeInd extends GenericPdu
M-Acknowledge.ind PDU.

Fields Summary
Constructors Summary
public AcknowledgeInd(int mmsVersion, byte[] transactionId)
Constructor, used when composing a M-Acknowledge.ind pdu.

param
mmsVersion current viersion of mms
param
transactionId the transaction-id value
throws
InvalidHeaderValueException if parameters are invalid. NullPointerException if transactionId is null.

        super();

        setMessageType(PduHeaders.MESSAGE_TYPE_ACKNOWLEDGE_IND);
        setMmsVersion(mmsVersion);
        setTransactionId(transactionId);
    
AcknowledgeInd(PduHeaders headers)
Constructor with given headers.

param
headers Headers for this PDU.

        super(headers);
    
Methods Summary
public intgetReportAllowed()
Get X-Mms-Report-Allowed field value.

return
the X-Mms-Report-Allowed value

        return mPduHeaders.getOctet(PduHeaders.REPORT_ALLOWED);
    
public byte[]getTransactionId()
Get X-Mms-Transaction-Id field value.

return
the X-Mms-Report-Allowed value

        return mPduHeaders.getTextString(PduHeaders.TRANSACTION_ID);
    
public voidsetReportAllowed(int value)
Set X-Mms-Report-Allowed field value.

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

        mPduHeaders.setOctet(value, PduHeaders.REPORT_ALLOWED);
    
public voidsetTransactionId(byte[] value)
Set X-Mms-Transaction-Id field value.

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

        mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID);