Package com.dropbox.core.v2.sharing
Class ListFoldersResult
- java.lang.Object
-
- com.dropbox.core.v2.sharing.ListFoldersResult
-
public class ListFoldersResult extends java.lang.Object
Result forDbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
orDbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
cursor
protected java.util.List<SharedFolderMetadata>
entries
-
Constructor Summary
Constructors Constructor Description ListFoldersResult(java.util.List<SharedFolderMetadata> entries)
Result forDbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
orDbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
, depending on which endpoint was requested.ListFoldersResult(java.util.List<SharedFolderMetadata> entries, java.lang.String cursor)
Result forDbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
orDbxUserSharingRequests.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.
-
-
-
Field Detail
-
entries
@Nonnull protected final java.util.List<SharedFolderMetadata> entries
-
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 forDbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
orDbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower()
.- Parameters:
entries
- List of all shared folders the authenticated user has access to. Must not contain anull
item and not benull
.cursor
- Present if there are additional shared folders that have not been returned yet. Pass the cursor into the corresponding continue endpoint (eitherDbxUserSharingRequests.listFoldersContinue(String)
orDbxUserSharingRequests.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 forDbxUserSharingRequests.listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
orDbxUserSharingRequests.listMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)
, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.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 anull
item and not benull
.- 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
.
-
getCursor
@Nullable public java.lang.String getCursor()
Present if there are additional shared folders that have not been returned yet. Pass the cursor into the corresponding continue endpoint (eitherDbxUserSharingRequests.listFoldersContinue(String)
orDbxUserSharingRequests.listMountableFoldersContinue(String)
) to list additional folders.- Returns:
- value for this field, or
null
if not present.
-
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
-
-