Package com.dropbox.core.v2.teamlog
Class GetTeamEventsResult
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GetTeamEventsResult
-
public class GetTeamEventsResult extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GetTeamEventsResult(java.util.List<TeamEvent> events, java.lang.String cursor, boolean hasMore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCursor()
Pass the cursor intoDbxTeamTeamLogRequests.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.
-
-
-
Field Detail
-
events
protected final java.util.List<TeamEvent> events
-
cursor
protected final java.lang.String cursor
-
hasMore
protected final boolean hasMore
-
-
Constructor Detail
-
GetTeamEventsResult
public GetTeamEventsResult(java.util.List<TeamEvent> events, java.lang.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 anull
item 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getEvents
public java.util.List<TeamEvent> 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
public java.lang.String 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-