DBSHARINGAddMember
Objective-C
@interface DBSHARINGAddMember : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGAddMember : NSObject, DBSerializable, NSCopying
The AddMember
struct.
The member and type of access the member should have when added to a shared folder.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The member to add to the shared folder.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGMemberSelector *_Nonnull member;
Swift
var member: DBSHARINGMemberSelector { get }
-
The access level to grant member to the shared folder.
owner
inDBSHARINGAccessLevel
is disallowed.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGAccessLevel *_Nonnull accessLevel;
Swift
var accessLevel: DBSHARINGAccessLevel { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithMember:(nonnull DBSHARINGMemberSelector *)member accessLevel: (nullable DBSHARINGAccessLevel *)accessLevel;
Swift
init(member: DBSHARINGMemberSelector, accessLevel: DBSHARINGAccessLevel?)
Parameters
member
The member to add to the shared folder.
accessLevel
The access level to grant member to the shared folder.
owner
inDBSHARINGAccessLevel
is disallowed.Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithMember: (nonnull DBSHARINGMemberSelector *)member;
Swift
init(member: DBSHARINGMemberSelector)
Parameters
member
The member to add to the shared folder.
Return Value
An initialized instance.