com.dropbox.client2
Class DropboxAPI.DeltaPage<MD>

java.lang.Object
  extended by com.dropbox.client2.DropboxAPI.DeltaPage<MD>
Enclosing class:
DropboxAPI<SESS_T extends Session>

public static final class DropboxAPI.DeltaPage<MD>
extends java.lang.Object

A page of DeltaEntrys (returned by delta).


Field Summary
 java.lang.String cursor
          A string that is used to keep track of your current state.
 java.util.List<DropboxAPI.DeltaEntry<MD>> entries
          Apply these entries to your local state to catch up with the Dropbox server's state.
 boolean hasMore
          If true, then there are more entries available; you can call delta again immediately to retrieve those entries.
 boolean reset
          If true, then you should reset your local state to be an empty folder before processing the list of delta entries.
 
Constructor Summary
DropboxAPI.DeltaPage(boolean reset, java.util.List<DropboxAPI.DeltaEntry<MD>> entries, java.lang.String cursor, boolean hasMore)
           
 
Method Summary
static
<MD> DropboxAPI.DeltaPage<MD>
extractFromJson(JsonThing j, JsonExtractor<MD> entryExtractor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reset

public final boolean reset
If true, then you should reset your local state to be an empty folder before processing the list of delta entries. This is only true in rare situations.


cursor

public final java.lang.String cursor
A string that is used to keep track of your current state. On the next call to delta, pass in this value to pick up where you left off.


entries

public final java.util.List<DropboxAPI.DeltaEntry<MD>> entries
Apply these entries to your local state to catch up with the Dropbox server's state.


hasMore

public final boolean hasMore
If true, then there are more entries available; you can call delta again immediately to retrieve those entries. If false, then wait at least 5 minutes (preferably longer) before checking again.

Constructor Detail

DropboxAPI.DeltaPage

public DropboxAPI.DeltaPage(boolean reset,
                            java.util.List<DropboxAPI.DeltaEntry<MD>> entries,
                            java.lang.String cursor,
                            boolean hasMore)
Method Detail

extractFromJson

public static <MD> DropboxAPI.DeltaPage<MD> extractFromJson(JsonThing j,
                                                            JsonExtractor<MD> entryExtractor)
                                                throws JsonExtractionException
Throws:
JsonExtractionException