public class BoxTask.Info extends BoxResource.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
String |
getCompletionRule()
Returns the completion rule for the task.
|
Date |
getCreatedAt()
Gets when this task was created.
|
BoxUser.Info |
getCreatedBy()
Gets the user who created this task.
|
Date |
getDueAt()
Gets the date at which this task is due.
|
BoxFile.Info |
getItem()
Gets the file associated with this task.
|
String |
getMessage()
Gets the message that will be included with this task.
|
BoxTask |
getResource()
Gets the resource associated with this Info.
|
List<BoxTaskAssignment.Info> |
getTaskAssignments()
Gets the collection of task assignments associated with this task.
|
String |
getTaskType()
Gets the action the task assignee will be prompted to do.
|
boolean |
isCompleted()
Gets whether or not this task has been completed.
|
void |
setCompletionRule(BoxTask.CompletionRule completionRule)
Sets the task's completion rule.
|
void |
setDueAt(Date dueAt)
Sets the task's due date.
|
void |
setMessage(String message)
Sets the task's message.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxTask getResource()
BoxResource.Info
getResource
in class BoxResource.Info
public BoxFile.Info getItem()
public Date getDueAt()
public void setDueAt(Date dueAt)
dueAt
- the task's due date.public String getTaskType()
public String getCompletionRule()
public void setCompletionRule(BoxTask.CompletionRule completionRule)
completionRule
- the new completion rule.public String getMessage()
public void setMessage(String message)
message
- the task's new message.public List<BoxTaskAssignment.Info> getTaskAssignments()
public boolean isCompleted()
public BoxUser.Info getCreatedBy()
public Date getCreatedAt()