DKTeam
@objc(DKTeam)
public final class DKTeam : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable, DKAccount
Teams are similar to a user account – they have their own username, dashboard and subscription, but a team can be managed by multiple users.
A user associated with a team can be a manager or a user. Managers have more privledges than a normal user and some API endpoints are limited to managers only.
Teams can be added to a collection as a collaborator by username or user_id (use the team id for this).
-
A team’s ability to act on the Dropmark platform
See moreDeclaration
Swift
public enum Status : String, CaseIterable -
The current user (as identified by the token supplied in the GET request) status within the team
See moreDeclaration
Swift
public enum UserKind : String, CaseIterable -
The unique identifier of the team
Declaration
Swift
public var id: NSNumber -
The name of a team
Declaration
Swift
public var name: String -
The primmary email associated with the team
Declaration
Swift
public var email: String? -
The unique username for the team
Declaration
Swift
public var username: String? -
Undocumented
Declaration
Swift
public var customDomain: String? -
Undocumented
Declaration
Swift
public var sortBy: String? -
Undocumented
Declaration
Swift
public var sortOrder: String? -
Undocumented
Declaration
Swift
public var viewMode: String? -
Undocumented
Declaration
Swift
public var labels: Bool? -
The membership tier of the team
Declaration
Swift
public var plan: DKPlan -
trueif a paid membership is still activeDeclaration
Swift
public var planIsActive: Bool? -
Undocumented
Declaration
Swift
public var planQuantity: NSNumber? -
The primary email address associate with the teams billing account
Declaration
Swift
public var billingEmail: String? -
The active/inactive status of the team
Declaration
Swift
public var status: Status -
The date the team was created
Declaration
Swift
public var createdAt: Date? -
A unique key used to assemble a Dropmark feed URL. Learn more about Dropmark feeds here.
Declaration
Swift
public var feedKey: String? -
The total amount of storage available for the current team (in bytes)
Declaration
Swift
public var storageQuota: NSNumber -
The amount of storage used by the current team (in bytes)
Declaration
Swift
public var storageUsed: NSNumber -
The role of the current user (as identified by the token supplied in the GET request) within the team
Declaration
Swift
public var userKind: UserKind? -
All collaborators within the team
Declaration
Swift
public var users: [DKUser]? -
The URL of the team’s avatar image
Declaration
Swift
public var avatar: URL?
-
Serializes a new instance from the provided network response and key-value representation. The representation is validated for the required parameters, then fills in optional parameters as necessary.
Declaration
Swift
public init?(response: HTTPURLResponse, representation: Any)Parameters
responseA network response assocated with serialization
representationA key-value object representing parameters and child objects.
-
Returns an object initialized from data in a given unarchiver.
Discussion: You typically return
selffrominit(coder:). If you have an advanced need that requires substituting a different object after decoding, you can do so inawakeAfter(using:).
Declaration
Swift
public required init?(coder aDecoder: NSCoder)Parameters
coderAn unarchiver object.
Return Value
self, initialized using the data incoder. -
Encodes the receiver using a given archiver.
Declaration
Swift
public func encode(with aCoder: NSCoder)Parameters
encoderAn archiver object.
View on GitHub
Install in Dash
DKTeam Class Reference