You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/astrid/plugin-src/com/todoroo/astrid/gtasks/api/UpdateRequest.java

29 lines
628 B
Java

package com.todoroo.astrid.gtasks.api;
import java.io.IOException;
import com.google.api.services.tasks.model.Task;
/**
* Encapsulates a request to the api to update a task on the remote server
* @author Sam Bosley
*
*/
public class UpdateRequest extends PushRequest {
public UpdateRequest(GtasksService service, String listId, Task toUpdate) {
super(service, listId, toUpdate);
}
@Override
public Task executePush() throws IOException {
return service.updateGtask(listId, toPush);
}
@Override
protected void recover() {
//Figure out a good way to recover!
}
}