DBPAPERUserInfoWithPermissionLevel
Objective-C
@interface DBPAPERUserInfoWithPermissionLevel
: NSObject <DBSerializable, NSCopying>
Swift
class DBPAPERUserInfoWithPermissionLevel : NSObject, DBSerializable, NSCopying
The UserInfoWithPermissionLevel
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
User shared on the Paper doc.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGUserInfo *_Nonnull user;
Swift
var user: DBSHARINGUserInfo { get }
-
Permission level for the user.
Declaration
Objective-C
@property (nonatomic, readonly) DBPAPERPaperDocPermissionLevel *_Nonnull permissionLevel;
Swift
var permissionLevel: DBPAPERPaperDocPermissionLevel { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithUser:(nonnull DBSHARINGUserInfo *)user permissionLevel:(nonnull DBPAPERPaperDocPermissionLevel *) permissionLevel;
Swift
init(user: DBSHARINGUserInfo, permissionLevel: DBPAPERPaperDocPermissionLevel)
Parameters
user
User shared on the Paper doc.
permissionLevel
Permission level for the user.
Return Value
An initialized instance.