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 more

    Declaration

    Swift

    public enum Status : String, CaseIterable
  • The current user (as identified by the token supplied in the GET request) status within the team

    See more

    Declaration

    Swift

    public enum UserKind : String, CaseIterable
  • id

    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
  • true if a paid membership is still active

    Declaration

    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?

DKResponseObjectSerializable

  • 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

    response

    A network response assocated with serialization

    representation

    A key-value object representing parameters and child objects.

NSCoding

  • Returns an object initialized from data in a given unarchiver.

    • Discussion: You typically return self from init(coder:). If you have an advanced need that requires substituting a different object after decoding, you can do so in awakeAfter(using:).

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)

    Parameters

    coder

    An unarchiver object.

    Return Value

    self, initialized using the data in coder.

  • Encodes the receiver using a given archiver.

    Declaration

    Swift

    public func encode(with aCoder: NSCoder)

    Parameters

    encoder

    An archiver object.