DBSHARINGMembershipInfo

Objective-C

@interface DBSHARINGMembershipInfo : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGMembershipInfo : NSObject, DBSerializable, NSCopying

The MembershipInfo struct.

The information about a member of the shared content.

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 access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBSHARINGAccessLevel *_Nonnull accessType;

    Swift

    var accessType: DBSHARINGAccessLevel { get }
  • The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.

    Declaration

    Objective-C

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

    Swift

    var permissions: [DBSHARINGMemberPermission]? { get }
  • Never set.

    Declaration

    Objective-C

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

    Swift

    var initials: String? { get }
  • True if the member has access from a parent folder.

    Declaration

    Objective-C

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

    Swift

    var isInherited: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithAccessType:(nonnull DBSHARINGAccessLevel *)accessType
               permissions:
                   (nullable NSArray<DBSHARINGMemberPermission *> *)permissions
                  initials:(nullable NSString *)initials
               isInherited:(nullable NSNumber *)isInherited;

    Swift

    init(accessType: DBSHARINGAccessLevel, permissions: [DBSHARINGMemberPermission]?, initials: String?, isInherited: NSNumber?)

    Parameters

    accessType

    The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.

    permissions

    The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.

    initials

    Never set.

    isInherited

    True if the member has access from a parent folder.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccessType:
        (nonnull DBSHARINGAccessLevel *)accessType;

    Swift

    init(accessType: DBSHARINGAccessLevel)

    Parameters

    accessType

    The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.

    Return Value

    An initialized instance.