DBCOMMONUserRootInfo

Objective-C

@interface DBCOMMONUserRootInfo : DBCOMMONRootInfo <DBSerializable, NSCopying>

Swift

class DBCOMMONUserRootInfo : DBCOMMONRootInfo, DBSerializable, NSCopying

The UserRootInfo struct.

Root info when user is not member of a team or the user is a member of a team and the team does not have a separate root namespace.

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

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithRootNamespaceId:(nonnull NSString *)rootNamespaceId
                homeNamespaceId:(nonnull NSString *)homeNamespaceId;

    Swift

    init(rootNamespaceId: String, homeNamespaceId: String)

    Parameters

    rootNamespaceId

    The namespace ID for user’s root namespace. It will be the namespace ID of the shared team root if the user is member of a team with a separate team root. Otherwise it will be same as homeNamespaceId in DBCOMMONRootInfo.

    homeNamespaceId

    The namespace ID for user’s home namespace.

    Return Value

    An initialized instance.