DBSHARINGListFilesArg

Objective-C

@interface DBSHARINGListFilesArg : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGListFilesArg : NSObject, DBSerializable, NSCopying

The ListFilesArg struct.

Arguments 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

  • Number of files to return max per query. Defaults to 100 if no limit is specified.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull limit;

    Swift

    var limit: NSNumber { get }
  • A list of FileActions corresponding to FilePermissions that should appear in the response’s permissions in DBSHARINGSharedFileMetadata field describing the actions the authenticated user can perform on the file.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<DBSHARINGFileAction *> *actions;

    Swift

    var actions: [DBSHARINGFileAction]? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithLimit:(nullable NSNumber *)limit
              actions:(nullable NSArray<DBSHARINGFileAction *> *)actions;

    Swift

    init(limit: NSNumber?, actions: [DBSHARINGFileAction]?)

    Parameters

    limit

    Number of files to return max per query. Defaults to 100 if no limit is specified.

    actions

    A list of FileActions corresponding to FilePermissions that should appear in the response’s permissions in DBSHARINGSharedFileMetadata field describing the actions the authenticated user can perform on the file.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initDefault;

    Swift

    init(default: ())

    Return Value

    An initialized instance.