DBTEAMNamespaceMetadata

Objective-C

@interface DBTEAMNamespaceMetadata : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMNamespaceMetadata : NSObject, DBSerializable, NSCopying

The NamespaceMetadata struct.

Properties of a namespace.

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 name of this namespace.

    Declaration

    Objective-C

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

    Swift

    var name: String { get }
  • The ID of this namespace.

    Declaration

    Objective-C

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

    Swift

    var namespaceId: String { get }
  • The type of this namespace.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBTEAMNamespaceType *_Nonnull namespaceType;

    Swift

    var namespaceType: DBTEAMNamespaceType { get }
  • If this is a team member or app folder, the ID of the owning team member. Otherwise, this field is not present.

    Declaration

    Objective-C

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

    Swift

    var teamMemberId: String? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                             namespaceId:(nonnull NSString *)namespaceId
                           namespaceType:
                               (nonnull DBTEAMNamespaceType *)namespaceType
                            teamMemberId:(nullable NSString *)teamMemberId;

    Swift

    init(name: String, namespaceId: String, namespaceType: DBTEAMNamespaceType, teamMemberId: String?)

    Parameters

    name

    The name of this namespace.

    namespaceId

    The ID of this namespace.

    namespaceType

    The type of this namespace.

    teamMemberId

    If this is a team member or app folder, the ID of the owning team member. Otherwise, this field is not present.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                             namespaceId:(nonnull NSString *)namespaceId
                           namespaceType:
                               (nonnull DBTEAMNamespaceType *)namespaceType;

    Swift

    init(name: String, namespaceId: String, namespaceType: DBTEAMNamespaceType)

    Parameters

    name

    The name of this namespace.

    namespaceId

    The ID of this namespace.

    namespaceType

    The type of this namespace.

    Return Value

    An initialized instance.