Skip to content

Commit

Permalink
Simply signature for async service calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Aug 2, 2016
1 parent e952c39 commit b4a6382
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @param <T> the type of the returning object
*/
public class ServiceCall<T> extends AbstractFuture<T> {
public class ServiceCall<T> extends AbstractFuture<ServiceResponse<T>> {
/**
* The Retrofit method invocation.
*/
Expand Down Expand Up @@ -71,10 +71,10 @@ public boolean isCanceled() {
* Invoke this method to report completed, allowing
* {@link AbstractFuture#get()} to be unblocked.
*
* @param result the object returned.
* @param result the service response returned.
* @return true if successfully reported; false otherwise.
*/
public boolean success(T result) {
public boolean success(ServiceResponse<T> result) {
return set(result);
}

Expand Down

0 comments on commit b4a6382

Please sign in to comment.