DBSHARINGInviteeMembershipInfo
Objective-C
@interface DBSHARINGInviteeMembershipInfo
: DBSHARINGMembershipInfo <DBSerializable, NSCopying>
Swift
class DBSHARINGInviteeMembershipInfo : DBSHARINGMembershipInfo, DBSerializable, NSCopying
The InviteeMembershipInfo
struct.
Information about an invited member of a shared content.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Recipient of the invitation.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGInviteeInfo *_Nonnull invitee;
Swift
var invitee: DBSHARINGInviteeInfo { get }
-
The user this invitation is tied to, if available.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGUserInfo *user;
Swift
var user: DBSHARINGUserInfo? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAccessType:(nonnull DBSHARINGAccessLevel *)accessType invitee:(nonnull DBSHARINGInviteeInfo *)invitee permissions: (nullable NSArray<DBSHARINGMemberPermission *> *)permissions initials:(nullable NSString *)initials isInherited:(nullable NSNumber *)isInherited user:(nullable DBSHARINGUserInfo *)user;
Swift
init(accessType: DBSHARINGAccessLevel, invitee: DBSHARINGInviteeInfo, permissions: [DBSHARINGMemberPermission]?, initials: String?, isInherited: NSNumber?, user: DBSHARINGUserInfo?)
Parameters
accessType
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.
invitee
Recipient of the invitation.
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.
user
The user this invitation is tied to, if available.
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 invitee:(nonnull DBSHARINGInviteeInfo *)invitee;
Swift
init(accessType: DBSHARINGAccessLevel, invitee: DBSHARINGInviteeInfo)
Parameters
accessType
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.
invitee
Recipient of the invitation.
Return Value
An initialized instance.