DBSHARINGListFoldersResult

@interface DBSHARINGListFoldersResult : NSObject <DBSerializable, NSCopying>

The ListFoldersResult struct.

Result for listFolders or listMountableFolders, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence of pathLower in DBSHARINGSharedFolderMetadata.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • List of all shared folders the authenticated user has access to.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSArray<DBSHARINGSharedFolderMetadata *> *_Nonnull entries;

    Swift

    var entries: [DBSHARINGSharedFolderMetadata] { get }
  • Present if there are additional shared folders that have not been returned yet. Pass the cursor into the corresponding continue endpoint (either listFoldersContinue or listMountableFoldersContinue) to list additional folders.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *cursor;

    Swift

    var cursor: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithEntries:(nonnull NSArray<DBSHARINGSharedFolderMetadata *> *)entries
             cursor:(nullable NSString *)cursor;

    Swift

    init(entries: [DBSHARINGSharedFolderMetadata], cursor: String?)

    Parameters

    entries

    List of all shared folders the authenticated user has access to.

    cursor

    Present if there are additional shared folders that have not been returned yet. Pass the cursor into the corresponding continue endpoint (either listFoldersContinue or listMountableFoldersContinue) to list additional folders.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEntries:
        (nonnull NSArray<DBSHARINGSharedFolderMetadata *> *)entries;

    Swift

    init(entries: [DBSHARINGSharedFolderMetadata])

    Parameters

    entries

    List of all shared folders the authenticated user has access to.

    Return Value

    An initialized instance.