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

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

1. GtasksInvoker#getAllGtasksFromListId()

Project: astrid
Source File: GtasksInvoker.java
View license
public com.google.api.services.tasks.model.Tasks getAllGtasksFromListId(String listId, boolean includeDeleted, boolean includeHidden, long lastSyncDate) throws IOException {
    com.google.api.services.tasks.model.Tasks toReturn = null;
    List request = service.tasks().list(listId);
    request.setShowDeleted(includeDeleted);
    request.setShowHidden(includeHidden);
    request.setUpdatedMin(GtasksApiUtilities.unixTimeToGtasksCompletionTime(lastSyncDate).toStringRfc3339());
    try {
        toReturn = request.execute();
    } catch (IOException e) {
        handleException(e);
        toReturn = request.execute();
    } finally {
        log("Get all tasks, list: " + listId + ", include deleted: " + includeDeleted, toReturn);
    }
    return toReturn;
}