Task
open class Task : CoatyObject
Represents a task or task request.
-
Undocumented
Declaration
Swift
override open class var objectType: String { get }
-
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()
orCoatyTimestamp.dateMillis()
)Declaration
Swift
public var creationTimestamp: Double
-
Coaty compatible timestamp when task has been changed (optional). (see
CoatyTimestamp.nowMillis()
orCoatyTimestamp.dateMillis()
)Declaration
Swift
public var lastModificationTimestamp: Double?
-
Coaty compatible timestamp when task should be due (optional). (see
CoatyTimestamp.nowMillis()
orCoatyTimestamp.dateMillis()
)Declaration
Swift
public var dueTimestamp: Double?
-
Coaty compatible timestamp when task has been done (optional). (see
CoatyTimestamp.nowMillis()
orCoatyTimestamp.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?
-
init(creatorId:
creationTimestamp: status: name: objectType: objectId: lastModificationTimestamp: dueTimestamp: doneTimestamp: requirements: description: assigneeObjectId: ) Default initializer for a
Task
object.Declaration
Swift
public init(creatorId: CoatyUUID, creationTimestamp: Double, status: TaskStatus, name: String = "TaskObject", objectType: String = Task.objectType, objectId: CoatyUUID = .init(), lastModificationTimestamp: Double? = nil, dueTimestamp: Double? = nil, doneTimestamp: Double? = nil, requirements: [String: Any]? = nil, description: String? = nil, assigneeObjectId: CoatyUUID? = nil)
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
open override func encode(to encoder: Encoder) throws