DBSHARINGMemberAccessLevelResult

Objective-C

@interface DBSHARINGMemberAccessLevelResult
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGMemberAccessLevelResult : NSObject, DBSerializable, NSCopying

The MemberAccessLevelResult struct.

Contains information about a member’s access level to content after an operation.

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 member still has this level of access to the content through a parent folder.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBSHARINGAccessLevel *accessLevel;

    Swift

    var accessLevel: DBSHARINGAccessLevel? { get }
  • A localized string with additional information about why the user has this access level to the content.

    Declaration

    Objective-C

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

    Swift

    var warning: String? { get }
  • The parent folders that a member has access to. The field is present if the user has access to the first parent folder where the member gains access.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<DBSHARINGParentFolderAccessInfo *> *accessDetails;

    Swift

    var accessDetails: [DBSHARINGParentFolderAccessInfo]? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithAccessLevel:(nullable DBSHARINGAccessLevel *)accessLevel
                    warning:(nullable NSString *)warning
              accessDetails:(nullable NSArray<DBSHARINGParentFolderAccessInfo *> *)
                                accessDetails;

    Swift

    init(accessLevel: DBSHARINGAccessLevel?, warning: String?, accessDetails: [DBSHARINGParentFolderAccessInfo]?)

    Parameters

    accessLevel

    The member still has this level of access to the content through a parent folder.

    warning

    A localized string with additional information about why the user has this access level to the content.

    accessDetails

    The parent folders that a member has access to. The field is present if the user has access to the first parent folder where the member gains access.

    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.