Build 1.0_r1(from source)

android.provider
Class Im.LastRmqId

java.lang.Object
  extended by android.provider.Im.LastRmqId
All Implemented Interfaces:
BaseColumns, Im.LastRmqIdColumns
Enclosing class:
Im

public static final class Im.LastRmqId
extends Object
implements BaseColumns, Im.LastRmqIdColumns

The table for storing the last client rmq id sent to the server.


Field Summary
static Uri CONTENT_URI
          The content:// style URL for this table.
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Fields inherited from interface android.provider.Im.LastRmqIdColumns
RMQ_ID
 
Constructor Summary
Im.LastRmqId()
           
 
Method Summary
static long queryLastRmqId(ContentResolver resolver)
          queryLastRmqId queries the last rmq id saved in the LastRmqId table.
static void saveLastRmqId(ContentResolver resolver, long rmqId)
          saveLastRmqId saves the rmqId to the lastRmqId table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_URI

public static final Uri CONTENT_URI
The content:// style URL for this table.

Constructor Detail

Im.LastRmqId

public Im.LastRmqId()
Method Detail

queryLastRmqId

public static final long queryLastRmqId(ContentResolver resolver)
queryLastRmqId queries the last rmq id saved in the LastRmqId table.

Parameters:
resolver - the content resolver.
Returns:
the last rmq id stored in the LastRmqId table, or 0 if not found.

saveLastRmqId

public static final void saveLastRmqId(ContentResolver resolver,
                                       long rmqId)
saveLastRmqId saves the rmqId to the lastRmqId table. This will override the existing row if any, as we only keep one row of data in this table.

Parameters:
resolver - the content resolver.
rmqId - the rmq id to be saved.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature