Skip to content

Instantly share code, notes, and snippets.

@mislavs
Created October 29, 2014 20:05
Show Gist options
  • Save mislavs/4996f28237b1c8ac3ace to your computer and use it in GitHub Desktop.
Save mislavs/4996f28237b1c8ac3ace to your computer and use it in GitHub Desktop.
Interface declaration for a REST client implementation using Retrofit.
package com.msvs.bookshelf.retrofit;
import com.msvs.bookshelf.retrofit.model.QueryResult;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Query;
public class Interfaces {
public interface GoogleBooksService {
@GET("/volumes?fields=items(volumeInfo)")
void getBookByIsbn(@Query("q") String query, Callback<QueryResult> cb);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment