DBUSERSTeamSpaceAllocation

Objective-C

@interface DBUSERSTeamSpaceAllocation : NSObject <DBSerializable, NSCopying>

Swift

class DBUSERSTeamSpaceAllocation : NSObject, DBSerializable, NSCopying

The TeamSpaceAllocation struct.

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 total space currently used by the user’s team (bytes).

    Declaration

    Objective-C

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

    Swift

    var used: NSNumber { get }
  • The total space allocated to the user’s team (bytes).

    Declaration

    Objective-C

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

    Swift

    var allocated: NSNumber { get }
  • The total space allocated to the user within its team allocated space (0 means that no restriction is imposed on the user’s quota within its team).

    Declaration

    Objective-C

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

    Swift

    var userWithinTeamSpaceAllocated: NSNumber { get }
  • The type of the space limit imposed on the team member (off, alert_only, stop_sync).

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBTEAMCOMMONMemberSpaceLimitType *_Nonnull userWithinTeamSpaceLimitType;

    Swift

    var userWithinTeamSpaceLimitType: DBTEAMCOMMONMemberSpaceLimitType { get }
  • An accurate cached calculation of a team member’s total space usage (bytes).

    Declaration

    Objective-C

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

    Swift

    var userWithinTeamSpaceUsedCached: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUsed:(nonnull NSNumber *)used
                               allocated:(nonnull NSNumber *)allocated
            userWithinTeamSpaceAllocated:
                (nonnull NSNumber *)userWithinTeamSpaceAllocated
            userWithinTeamSpaceLimitType:
                (nonnull DBTEAMCOMMONMemberSpaceLimitType *)
                    userWithinTeamSpaceLimitType
           userWithinTeamSpaceUsedCached:
               (nonnull NSNumber *)userWithinTeamSpaceUsedCached;

    Swift

    init(used: NSNumber, allocated: NSNumber, userWithinTeamSpaceAllocated: NSNumber, userWithinTeamSpaceLimitType: DBTEAMCOMMONMemberSpaceLimitType, userWithinTeamSpaceUsedCached: NSNumber)

    Parameters

    used

    The total space currently used by the user’s team (bytes).

    allocated

    The total space allocated to the user’s team (bytes).

    userWithinTeamSpaceAllocated

    The total space allocated to the user within its team allocated space (0 means that no restriction is imposed on the user’s quota within its team).

    userWithinTeamSpaceLimitType

    The type of the space limit imposed on the team member (off, alert_only, stop_sync).

    userWithinTeamSpaceUsedCached

    An accurate cached calculation of a team member’s total space usage (bytes).

    Return Value

    An initialized instance.