Class GetTeamEventsResult


  • public class GetTeamEventsResult
    extends java.lang.Object
    • Field Detail

      • events

        @Nonnull
        protected final java.util.List<TeamEvent> events
      • cursor

        @Nonnull
        protected final java.lang.String cursor
      • hasMore

        protected final boolean hasMore
    • Constructor Detail

      • GetTeamEventsResult

        public GetTeamEventsResult​(@Nonnull
                                   java.util.List<TeamEvent> events,
                                   @Nonnull
                                   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 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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getEvents

        @Nonnull
        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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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