Package com.dropbox.core.v2.teamlog
Class GetTeamEventsResult
java.lang.Object
com.dropbox.core.v2.teamlog.GetTeamEventsResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPass the cursor intoDbxTeamTeamLogRequests.getEventsContinue(String)to obtain additional events.List of events.booleanIs true if there may be additional events that have not been returned yet.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
events
-
cursor
-
hasMore
protected final boolean hasMore
-
-
Constructor Details
-
GetTeamEventsResult
public GetTeamEventsResult(@Nonnull List<TeamEvent> events, @Nonnull String cursor, boolean hasMore) - Parameters:
events- List of events. Note that events are not guaranteed to be sorted by their timestamp value. Must not contain anullitem and not benull.cursor- Pass the cursor intoDbxTeamTeamLogRequests.getEventsContinue(String)to obtain additional events. The value ofgetCursor()may change for each response fromDbxTeamTeamLogRequests.getEventsContinue(String), regardless of the value ofgetHasMore(); older cursor strings may expire. Thus, callers should ensure that they update their cursor based on the latest value ofgetCursor()after each call, and poll regularly if they wish to poll for new events. Callers should handle reset exceptions for expired cursors. Must not benull.hasMore- Is true if there may be additional events that have not been returned yet. An additional call toDbxTeamTeamLogRequests.getEventsContinue(String)can retrieve them. Note thatgetHasMore()may betrue, even ifgetEvents()is empty.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getEvents
List of events. Note that events are not guaranteed to be sorted by their timestamp value.- Returns:
- value for this field, never
null.
-
getCursor
Pass the cursor intoDbxTeamTeamLogRequests.getEventsContinue(String)to obtain additional events. The value ofgetCursor()may change for each response fromDbxTeamTeamLogRequests.getEventsContinue(String), regardless of the value ofgetHasMore(); older cursor strings may expire. Thus, callers should ensure that they update their cursor based on the latest value ofgetCursor()after each call, and poll regularly if they wish to poll for new events. Callers should handle reset exceptions for expired cursors.- Returns:
- value for this field, never
null.
-
getHasMore
public boolean getHasMore()Is true if there may be additional events that have not been returned yet. An additional call toDbxTeamTeamLogRequests.getEventsContinue(String)can retrieve them. Note thatgetHasMore()may betrue, even ifgetEvents()is empty.- Returns:
- value for this field.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-