DBUSERSSpaceUsage

@interface DBUSERSSpaceUsage : NSObject <DBSerializable, NSCopying>

The SpaceUsage struct.

Information about a user’s space usage and quota.

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

  • The user’s total space usage (bytes).

    Declaration

    Objective-C

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

    Swift

    var used: NSNumber { get }
  • The user’s space allocation.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBUSERSSpaceAllocation *_Nonnull allocation;

    Swift

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUsed:(nonnull NSNumber *)used
                              allocation:
                                  (nonnull DBUSERSSpaceAllocation *)allocation;

    Swift

    init(used: NSNumber, allocation: DBUSERSSpaceAllocation)

    Parameters

    used

    The user’s total space usage (bytes).

    allocation

    The user’s space allocation.

    Return Value

    An initialized instance.