@BoxResourceType(value="task_assignment") public class BoxTaskAssignment extends BoxResource
Modifier and Type | Class and Description |
---|---|
class |
BoxTaskAssignment.Info
Contains information about a task assignment.
|
static class |
BoxTaskAssignment.ResolutionState
Enumerates the possible resolution states that a task assignment can have.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
TASK_ASSIGNMENT_URL_TEMPLATE
Task Assignment URL Template.
|
Constructor and Description |
---|
BoxTaskAssignment(BoxAPIConnection api,
String id)
Constructs a BoxTaskAssignment for a task assignment with a given ID.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes this task assignment.
|
BoxTaskAssignment.Info |
getInfo()
Gets information about this task assignment.
|
BoxTaskAssignment.Info |
getInfo(String... fields)
Gets information about this task assignment.
|
void |
updateInfo(BoxTaskAssignment.Info info)
Updates the information about this task assignment with any info fields that have been modified locally.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate TASK_ASSIGNMENT_URL_TEMPLATE
public BoxTaskAssignment(BoxAPIConnection api, String id)
api
- the API connection to be used by the resource.id
- the ID of the task assignment.public void delete()
public BoxTaskAssignment.Info getInfo()
public BoxTaskAssignment.Info getInfo(String... fields)
fields
- the fields to retrieve.public void updateInfo(BoxTaskAssignment.Info info)
The only fields that will be updated are the ones that have been modified locally. For example, the following code won't update any information (or even send a network request) since none of the info's fields were changed:
BoxTaskAssignment taskAssignment = new BoxTaskAssignment(api, id); BoxTaskAssignment.Info info = taskAssignment.getInfo(); taskAssignment.updateInfo(info);
info
- the updated info.