DBSHARINGGetMetadataArgs

Objective-C

@interface DBSHARINGGetMetadataArgs : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGGetMetadataArgs : NSObject, DBSerializable, NSCopying

The GetMetadataArgs struct.

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 ID for the shared folder.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull sharedFolderId;

    Swift

    var sharedFolderId: String { get }
  • A list of FolderActions corresponding to FolderPermissions that should appear in the response’s permissions in DBSHARINGSharedFolderMetadata field describing the actions the authenticated user can perform on the folder.

    Declaration

    Objective-C

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

    Swift

    var actions: [DBSHARINGFolderAction]? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithSharedFolderId:(nonnull NSString *)sharedFolderId
                       actions:(nullable NSArray<DBSHARINGFolderAction *> *)actions;

    Swift

    init(sharedFolderId: String, actions: [DBSHARINGFolderAction]?)

    Parameters

    sharedFolderId

    The ID for the shared folder.

    actions

    A list of FolderActions corresponding to FolderPermissions that should appear in the response’s permissions in DBSHARINGSharedFolderMetadata field describing the actions the authenticated user can perform on the folder.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSharedFolderId:
        (nonnull NSString *)sharedFolderId;

    Swift

    init(sharedFolderId: String)

    Parameters

    sharedFolderId

    The ID for the shared folder.

    Return Value

    An initialized instance.