Task
public class Task : BoxModel
Enables file-centric workflows in Box. User can create tasks on files and assign them to collaborators on Box. You can read more about tasks in Box here.
-
Box item type
Declaration
Swift
public var type: String -
Declaration
Swift
public private(set) var rawData: [String : Any]
-
Identifier
Declaration
Swift
public let id: String -
The file associated with the task.
Declaration
Swift
public let item: TaskItem? -
When the task is due.
Declaration
Swift
public let dueAt: Date? -
The action the task assignee will be prompted to do. Depending on task type, this can be
review
orcomplete
.Declaration
Swift
public let action: TaskAction? -
A message that will be included with the task.
Declaration
Swift
public let message: String? -
A collection of mini task_assignment objects associated with the task.
Declaration
Swift
public let taskAssignmentCollection: EntryContainer<TaskAssignment>? -
Whether the task has been completed.
Declaration
Swift
public let isCompleted: Bool? -
The user who created the task.
Declaration
Swift
public let createdBy: User? -
When the task object was created.
Declaration
Swift
public let createdAt: Date? -
The rule that determines whether a task is completed
Declaration
Swift
public let completionRule: TaskCompletionRule? -
Initializer.
Throws
Decoding error.Declaration
Swift
public required init(json: [String : Any]) throwsParameters
jsonJSON dictionary.
Task Class Reference