DBSHARINGUserFileMembershipInfo

Objective-C

@interface DBSHARINGUserFileMembershipInfo
    : DBSHARINGUserMembershipInfo <DBSerializable, NSCopying>

Swift

class DBSHARINGUserFileMembershipInfo : DBSHARINGUserMembershipInfo, DBSerializable, NSCopying

The UserFileMembershipInfo struct.

The information about a user member of the shared content with an appended last seen timestamp.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *timeLastSeen;

    Swift

    var timeLastSeen: Date? { get }
  • The platform on which the user has last seen the content, or unknown.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBSEENSTATEPlatformType *platformType;

    Swift

    var platformType: DBSEENSTATEPlatformType? { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithAccessType:(nonnull DBSHARINGAccessLevel *)accessType
                      user:(nonnull DBSHARINGUserInfo *)user
               permissions:
                   (nullable NSArray<DBSHARINGMemberPermission *> *)permissions
                  initials:(nullable NSString *)initials
               isInherited:(nullable NSNumber *)isInherited
              timeLastSeen:(nullable NSDate *)timeLastSeen
              platformType:(nullable DBSEENSTATEPlatformType *)platformType;

    Swift

    init(accessType: DBSHARINGAccessLevel, user: DBSHARINGUserInfo, permissions: [DBSHARINGMemberPermission]?, initials: String?, isInherited: NSNumber?, timeLastSeen: Date?, platformType: DBSEENSTATEPlatformType?)

    Parameters

    accessType

    The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.

    user

    The account information for the membership user.

    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.

    timeLastSeen

    The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.

    platformType

    The platform on which the user has last seen the content, or unknown.

    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
                                          user:(nonnull DBSHARINGUserInfo *)user;

    Swift

    init(accessType: DBSHARINGAccessLevel, 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.

    user

    The account information for the membership user.

    Return Value

    An initialized instance.