DBSHARINGMemberPermission
Objective-C
@interface DBSHARINGMemberPermission : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGMemberPermission : NSObject, DBSerializable, NSCopying
                The MemberPermission struct.
Whether the user is allowed to take the action on the associated member.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
The action that the user may wish to take on the member.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGMemberAction *_Nonnull action;Swift
var action: DBSHARINGMemberAction { get } - 
                  
                  
True if the user is allowed to take the action.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull allow;Swift
var allow: NSNumber { get } - 
                  
                  
The reason why the user is denied the permission. Not present if the action is allowed.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGPermissionDeniedReason *reason;Swift
var reason: DBSHARINGPermissionDeniedReason? { get } 
- 
                  
                  
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAction:(nonnull DBSHARINGMemberAction *)action allow:(nonnull NSNumber *)allow reason:(nullable DBSHARINGPermissionDeniedReason *)reason;Swift
init(action: DBSHARINGMemberAction, allow: NSNumber, reason: DBSHARINGPermissionDeniedReason?)Parameters
actionThe action that the user may wish to take on the member.
allowTrue if the user is allowed to take the action.
reasonThe reason why the user is denied the permission. Not present if the action is allowed.
Return Value
An initialized instance.
 - 
                  
                  
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithAction:(nonnull DBSHARINGMemberAction *)action allow:(nonnull NSNumber *)allow;Swift
init(action: DBSHARINGMemberAction, allow: NSNumber)Parameters
actionThe action that the user may wish to take on the member.
allowTrue if the user is allowed to take the action.
Return Value
An initialized instance.
 
View on GitHub
        DBSHARINGMemberPermission Class Reference