DBSHARINGListFilesResult

Objective-C

@interface DBSHARINGListFilesResult : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGListFilesResult : NSObject, DBSerializable, NSCopying

The ListFilesResult struct.

Success results for listReceivedFiles.

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

Instance fields

  • Information about the files shared with current user.

    Declaration

    Objective-C

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

    Swift

    var entries: [DBSHARINGSharedFileMetadata] { get }
  • Cursor used to obtain additional shared files.

    Declaration

    Objective-C

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

    Swift

    var cursor: String? { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    entries

    Information about the files shared with current user.

    cursor

    Cursor used to obtain additional shared files.

    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<DBSHARINGSharedFileMetadata *> *)entries;

    Swift

    init(entries: [DBSHARINGSharedFileMetadata])

    Parameters

    entries

    Information about the files shared with current user.

    Return Value

    An initialized instance.