DBTEAMTeamNamespacesListResult

Objective-C

@interface DBTEAMTeamNamespacesListResult : NSObject <DBSerializable, NSCopying>

Swift

class 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.

Instance fields

  • List of all namespaces the team can access.

    Declaration

    Objective-C

    @property (nonatomic, readonly) 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 (nonatomic, copy, readonly) 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 (nonatomic, readonly) NSNumber *_Nonnull hasMore;

    Swift

    var hasMore: NSNumber { get }

Constructors

  • 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.