DBSHARINGParentFolderAccessInfo

Objective-C

@interface DBSHARINGParentFolderAccessInfo
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGParentFolderAccessInfo : NSObject, DBSerializable, NSCopying

The ParentFolderAccessInfo struct.

Contains information about a parent folder that a member has access to.

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

Instance fields

  • Display name for the folder.

    Declaration

    Objective-C

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

    Swift

    var folderName: String { get }
  • The identifier of the parent shared folder.

    Declaration

    Objective-C

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

    Swift

    var sharedFolderId: String { get }
  • The user’s permissions for the parent shared folder.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBSHARINGMemberPermission *> *_Nonnull permissions;

    Swift

    var permissions: [DBSHARINGMemberPermission] { get }
  • The full path to the parent shared folder relative to the acting user’s root.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithFolderName:(nonnull NSString *)folderName
            sharedFolderId:(nonnull NSString *)sharedFolderId
               permissions:
                   (nonnull NSArray<DBSHARINGMemberPermission *> *)permissions
                      path:(nonnull NSString *)path;

    Swift

    init(folderName: String, sharedFolderId: String, permissions: [DBSHARINGMemberPermission], path: String)

    Parameters

    folderName

    Display name for the folder.

    sharedFolderId

    The identifier of the parent shared folder.

    permissions

    The user’s permissions for the parent shared folder.

    path

    The full path to the parent shared folder relative to the acting user’s root.

    Return Value

    An initialized instance.