DBSHARINGGetFileMetadataBatchArg

Objective-C

@interface DBSHARINGGetFileMetadataBatchArg
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGGetFileMetadataBatchArg : NSObject, DBSerializable, NSCopying

The GetFileMetadataBatchArg struct.

Arguments of getFileMetadataBatch.

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

Instance fields

  • The files to query.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSString *> *_Nonnull files;

    Swift

    var files: [String] { 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)
        initWithFiles:(nonnull NSArray<NSString *> *)files
              actions:(nullable NSArray<DBSHARINGFileAction *> *)actions;

    Swift

    init(files: [String], actions: [DBSHARINGFileAction]?)

    Parameters

    files

    The files to query.

    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)initWithFiles:(nonnull NSArray<NSString *> *)files;

    Swift

    init(files: [String])

    Parameters

    files

    The files to query.

    Return Value

    An initialized instance.