public class GetTeamEventsResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cursor |
protected java.util.List<TeamEvent> |
events |
protected boolean |
hasMore |
Constructor and Description |
---|
GetTeamEventsResult(java.util.List<TeamEvent> events,
java.lang.String cursor,
boolean hasMore) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCursor()
Pass the cursor into
DbxTeamTeamLogRequests.getEventsContinue(String) to obtain additional
events. |
java.util.List<TeamEvent> |
getEvents()
List of events.
|
boolean |
getHasMore()
Is true if there may be additional events that have not been returned
yet.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.util.List<TeamEvent> events
protected final java.lang.String cursor
protected final boolean hasMore
public GetTeamEventsResult(java.util.List<TeamEvent> events, java.lang.String cursor, boolean hasMore)
events
- List of events. Note that events are not guaranteed to be
sorted by their timestamp value. Must not contain a null
item
and not be null
.cursor
- Pass the cursor into DbxTeamTeamLogRequests.getEventsContinue(String)
to obtain
additional events. The value of getCursor()
may change for each response from DbxTeamTeamLogRequests.getEventsContinue(String)
, regardless of the
value of getHasMore()
; older cursor strings
may expire. Thus, callers should ensure that they update their cursor
based on the latest value of getCursor()
after each call, and poll regularly if they wish to poll for new
events. Callers should handle reset exceptions for expired cursors.
Must not be null
.hasMore
- Is true if there may be additional events that have not
been returned yet. An additional call to DbxTeamTeamLogRequests.getEventsContinue(String)
can retrieve them.
Note that getHasMore()
may be true
,
even if getEvents()
is empty.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.List<TeamEvent> getEvents()
null
.public java.lang.String getCursor()
DbxTeamTeamLogRequests.getEventsContinue(String)
to obtain additional
events. The value of getCursor()
may change for
each response from DbxTeamTeamLogRequests.getEventsContinue(String)
, regardless of the
value of getHasMore()
; older cursor strings may
expire. Thus, callers should ensure that they update their cursor based
on the latest value of getCursor()
after each
call, and poll regularly if they wish to poll for new events. Callers
should handle reset exceptions for expired cursors.null
.public boolean getHasMore()
DbxTeamTeamLogRequests.getEventsContinue(String)
can retrieve them. Note
that getHasMore()
may be true
, even if
getEvents()
is empty.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.