|
|
@ -68,11 +68,10 @@ public class GtasksInvoker {
|
|
|
|
GtasksApiUtilities.unixTimeToGtasksCompletionTime(lastSyncDate).toStringRfc3339()));
|
|
|
|
GtasksApiUtilities.unixTimeToGtasksCompletionTime(lastSyncDate).toStringRfc3339()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public @Nullable Task createGtask(String listId, Task task, String parent, String priorSiblingId)
|
|
|
|
public @Nullable Task createGtask(String listId, Task task, String priorSiblingId)
|
|
|
|
throws IOException {
|
|
|
|
throws IOException {
|
|
|
|
Timber.d("createGtask: %s", prettyPrint(task));
|
|
|
|
Timber.d("createGtask: %s", prettyPrint(task));
|
|
|
|
return execute(
|
|
|
|
return execute(service.tasks().insert(listId, task).setPrevious(priorSiblingId));
|
|
|
|
service.tasks().insert(listId, task).setParent(parent).setPrevious(priorSiblingId));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void updateGtask(String listId, Task task) throws IOException {
|
|
|
|
public void updateGtask(String listId, Task task) throws IOException {
|
|
|
|