FileDocCategorySizeDatePackage
BluetoothMasRequestGetMessagesListingSize.javaAPI DocAndroid 5.1 API1705Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.map

BluetoothMasRequestGetMessagesListingSize

public final class BluetoothMasRequestGetMessagesListingSize extends BluetoothMasRequest

Fields Summary
private static final String
TYPE
private int
mSize
Constructors Summary
public BluetoothMasRequestGetMessagesListingSize()


      
        mHeaderSet.setHeader(HeaderSet.NAME, "");
        mHeaderSet.setHeader(HeaderSet.TYPE, TYPE);

        ObexAppParameters oap = new ObexAppParameters();
        oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) 0);

        oap.addToHeaderSet(mHeaderSet);
    
Methods Summary
public voidexecute(javax.obex.ClientSession session)

        executeGet(session);
    
public intgetSize()

        return mSize;
    
protected voidreadResponseHeaders(javax.obex.HeaderSet headerset)

        ObexAppParameters oap = ObexAppParameters.fromHeaderSet(headerset);

        mSize = oap.getShort(OAP_TAGID_MESSAGES_LISTING_SIZE);