DBPAPERAddMember
Objective-C
@interface DBPAPERAddMember : NSObject <DBSerializable, NSCopying>
Swift
class DBPAPERAddMember : NSObject, DBSerializable, NSCopying
The AddMember
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Permission for the user.
Declaration
Objective-C
@property (nonatomic, readonly) DBPAPERPaperDocPermissionLevel *_Nonnull permissionLevel;
Swift
var permissionLevel: DBPAPERPaperDocPermissionLevel { get }
-
User which should be added to the Paper doc. Specify only email address or Dropbox account ID.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGMemberSelector *_Nonnull member;
Swift
var member: DBSHARINGMemberSelector { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithMember:(nonnull DBSHARINGMemberSelector *)member permissionLevel:(nullable DBPAPERPaperDocPermissionLevel *)permissionLevel;
Swift
init(member: DBSHARINGMemberSelector, permissionLevel: DBPAPERPaperDocPermissionLevel?)
Parameters
member
User which should be added to the Paper doc. Specify only email address or Dropbox account ID.
permissionLevel
Permission for the user.
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
User which should be added to the Paper doc. Specify only email address or Dropbox account ID.
Return Value
An initialized instance.