DBTEAMTeamNamespacesListResult

@interface DBTEAMTeamNamespacesListResult : NSObject <DBSerializable, NSCopying>

The TeamNamespacesListResult struct.

Result for namespacesList.

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

  • List of all namespaces the team can access.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSArray<DBTEAMNamespaceMetadata *> *_Nonnull namespaces;

    Swift

    var namespaces: [DBTEAMNamespaceMetadata] { get }
  • Pass the cursor into namespacesListContinue to obtain additional namespaces. Note that duplicate namespaces may be returned.

    Declaration

    Objective-C

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

    Swift

    var cursor: String { get }
  • Is true if there are additional namespaces that have not been returned yet.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull hasMore;

    Swift

    var hasMore: NSNumber { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithNamespaces:(nonnull NSArray<DBTEAMNamespaceMetadata *> *)namespaces
                cursor:(nonnull NSString *)cursor
               hasMore:(nonnull NSNumber *)hasMore;

    Swift

    init(namespaces: [DBTEAMNamespaceMetadata], cursor: String, hasMore: NSNumber)

    Parameters

    namespaces

    List of all namespaces the team can access.

    cursor

    Pass the cursor into namespacesListContinue to obtain additional namespaces. Note that duplicate namespaces may be returned.

    hasMore

    Is true if there are additional namespaces that have not been returned yet.

    Return Value

    An initialized instance.