DBUSERSTeamSpaceAllocation

@interface 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.

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic)
        DBTEAMCOMMONMemberSpaceLimitType *_Nonnull userWithinTeamSpaceLimitType;

    Swift

    var userWithinTeamSpaceLimitType: DBTEAMCOMMONMemberSpaceLimitType { get }
  • 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;

    Swift

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

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

    Return Value

    An initialized instance.