DBTEAMStorageBucket

Objective-C

@interface DBTEAMStorageBucket : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMStorageBucket : NSObject, DBSerializable, NSCopying

The StorageBucket struct.

Describes the number of users in a specific storage bucket.

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 the storage bucket. For example, ‘1G’ is a bucket of users with storage size up to 1 Giga.

    Declaration

    Objective-C

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

    Swift

    var bucket: String { get }
  • The number of people whose storage is in the range of this storage bucket.

    Declaration

    Objective-C

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

    Swift

    var users: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBucket:(nonnull NSString *)bucket
                                     users:(nonnull NSNumber *)users;

    Swift

    init(bucket: String, users: NSNumber)

    Parameters

    bucket

    The name of the storage bucket. For example, ‘1G’ is a bucket of users with storage size up to 1 Giga.

    users

    The number of people whose storage is in the range of this storage bucket.

    Return Value

    An initialized instance.