Class ListFoldersResult


  • public class ListFoldersResult
    extends java.lang.Object
    Result for DbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs) or DbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence of SharedFolderMetadata.getPathLower().
    • Constructor Summary

      Constructors 
      Constructor Description
      ListFoldersResult​(java.util.List<SharedFolderMetadata> entries)
      Result for DbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs) or DbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested.
      ListFoldersResult​(java.util.List<SharedFolderMetadata> entries, java.lang.String cursor)
      Result for DbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs) or DbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getCursor()
      Present if there are additional shared folders that have not been returned yet.
      java.util.List<SharedFolderMetadata> getEntries()
      List of all shared folders the authenticated user has access to.
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cursor

        @Nullable
        protected final java.lang.String cursor
    • Constructor Detail

      • ListFoldersResult

        public ListFoldersResult​(@Nonnull
                                 java.util.List<SharedFolderMetadata> entries,
                                 @Nullable
                                 java.lang.String cursor)
        Result for DbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs) or DbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence of SharedFolderMetadata.getPathLower().
        Parameters:
        entries - List of all shared folders the authenticated user has access to. Must not contain a null item and not be null.
        cursor - Present if there are additional shared folders that have not been returned yet. Pass the cursor into the corresponding continue endpoint (either DbxUserSharingRequests.listFoldersContinue(String) or DbxUserSharingRequests.listMountableFoldersContinue(String)) to list additional folders.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • ListFoldersResult

        public ListFoldersResult​(@Nonnull
                                 java.util.List<SharedFolderMetadata> entries)
        Result for DbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs) or DbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence of SharedFolderMetadata.getPathLower().

        The default values for unset fields will be used.

        Parameters:
        entries - List of all shared folders the authenticated user has access to. Must not contain a null item and not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getEntries

        @Nonnull
        public java.util.List<SharedFolderMetadata> getEntries()
        List of all shared folders the authenticated user has access to.
        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