DBUSERSSpaceUsage
Objective-C
@interface DBUSERSSpaceUsage : NSObject <DBSerializable, NSCopying>
Swift
class 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 (nonatomic, readonly) NSNumber *_Nonnull used;Swift
var used: NSNumber { get } -
The user’s space allocation.
Declaration
Objective-C
@property (nonatomic, readonly) 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
usedThe user’s total space usage (bytes).
allocationThe user’s space allocation.
Return Value
An initialized instance.
View on GitHub
DBUSERSSpaceUsage Class Reference