Search in sources :

Example 1 with NotifyRespInd

use of ws.com.google.android.mms.pdu.NotifyRespInd in project Signal-Android by WhisperSystems.

the class IncomingLegacyMmsConnection method sendRetrievedAcknowledgement.

private void sendRetrievedAcknowledgement(byte[] transactionId, boolean usingRadio, boolean useProxy) throws ApnUnavailableException {
    try {
        NotifyRespInd notifyResponse = new NotifyRespInd(PduHeaders.CURRENT_MMS_VERSION, transactionId, PduHeaders.STATUS_RETRIEVED);
        OutgoingLegacyMmsConnection connection = new OutgoingLegacyMmsConnection(context);
        connection.sendNotificationReceived(new PduComposer(context, notifyResponse).make(), usingRadio, useProxy);
    } catch (InvalidHeaderValueException | IOException e) {
        Log.w(TAG, e);
    }
}
Also used : NotifyRespInd(ws.com.google.android.mms.pdu.NotifyRespInd) InvalidHeaderValueException(ws.com.google.android.mms.InvalidHeaderValueException) IOException(java.io.IOException) PduComposer(ws.com.google.android.mms.pdu.PduComposer)

Aggregations

IOException (java.io.IOException)1 InvalidHeaderValueException (ws.com.google.android.mms.InvalidHeaderValueException)1 NotifyRespInd (ws.com.google.android.mms.pdu.NotifyRespInd)1 PduComposer (ws.com.google.android.mms.pdu.PduComposer)1