Task

open class Task : CoatyObject

Represents a task or task request.

Class registration.

  • Undocumented

    Declaration

    Swift

    override open class var objectType: String { get }

Attributes.

  • Object ID of user who created the task

    Declaration

    Swift

    public var creatorId: CoatyUUID
  • Coaty compatible timestamp when task was issued/created. (see CoatyTimestamp.nowMillis() or CoatyTimestamp.dateMillis())

    Declaration

    Swift

    public var creationTimestamp: Double
  • Coaty compatible timestamp when task has been changed (optional). (see CoatyTimestamp.nowMillis() or CoatyTimestamp.dateMillis())

    Declaration

    Swift

    public var lastModificationTimestamp: Double?
  • Coaty compatible timestamp when task should be due (optional). (see CoatyTimestamp.nowMillis() or CoatyTimestamp.dateMillis())

    Declaration

    Swift

    public var dueTimestamp: Double?
  • Coaty compatible timestamp when task has been done (optional). (see CoatyTimestamp.nowMillis() or CoatyTimestamp.dateMillis())

    Declaration

    Swift

    public var doneTimestamp: Double?
  • The amount of time (in milliseconds) the task will take or should took to complete (optional).

    Declaration

    Swift

    public var duration: Double?
  • Status of task.

    Declaration

    Swift

    public var status: TaskStatus
  • Required competencies, roles, etc. needed to fulfill this task (optional). Requirements are specified as key-value pairs with JSON compatible values.

    Declaration

    Swift

    public var requirements: [String : Any]?
  • Description of the task (optional)

    Declaration

    Swift

    public var desc: String?
  • Unique ID of object that this task is assigned to (optional).

    Declaration

    Swift

    public var assigneeObjectId: CoatyUUID?

Initializers.

Codable methods.

  • Undocumented

    Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    open override func encode(to encoder: Encoder) throws