DBSHARINGTeamMemberInfo

@interface DBSHARINGTeamMemberInfo : NSObject <DBSerializable, NSCopying>

The TeamMemberInfo struct.

Information about a team member.

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

  • Information about the member’s team.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBUSERSTeam *_Nonnull teamInfo;

    Swift

    var teamInfo: DBUSERSTeam { get }
  • The display name of the user.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull displayName;

    Swift

    var displayName: String { get }
  • ID of user as a member of a team. This field will only be present if the member is in the same team as current user.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *memberId;

    Swift

    var memberId: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamInfo:(nonnull DBUSERSTeam *)teamInfo
                                 displayName:(nonnull NSString *)displayName
                                    memberId:(nullable NSString *)memberId;

    Swift

    init(teamInfo: DBUSERSTeam, displayName: String, memberId: String?)

    Parameters

    teamInfo

    Information about the member’s team.

    displayName

    The display name of the user.

    memberId

    ID of user as a member of a team. This field will only be present if the member is in the same team as current user.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamInfo:(nonnull DBUSERSTeam *)teamInfo
                                 displayName:(nonnull NSString *)displayName;

    Swift

    init(teamInfo: DBUSERSTeam, displayName: String)

    Parameters

    teamInfo

    Information about the member’s team.

    displayName

    The display name of the user.

    Return Value

    An initialized instance.