com.google.api.services.tasks.Tasks.TasksOperations.Move

Here are the examples of the java api class com.google.api.services.tasks.Tasks.TasksOperations.Move taken from open source projects.

1. GtasksInvoker#moveGtask()

Project: astrid
File: GtasksInvoker.java
public Task moveGtask(String listId, String taskId, String parentId, String previousId) throws IOException {
    Move move = service.tasks().move(listId, taskId);
    move.setParent(parentId);
    move.setPrevious(previousId);
    Task toReturn = null;
    try {
        toReturn = move.execute();
    } catch (IOException e) {
        handleException(e);
        toReturn = move.execute();
    } finally {
        log("Move task " + taskId + "to parent: " + parentId + ", prior sibling: " + previousId, toReturn);
    }
    return toReturn;
}