package com.alorma.github.sdk.services.gists;
import com.alorma.github.sdk.bean.dto.response.Gist;
import com.alorma.github.sdk.services.client.GithubClient;
import retrofit.RestAdapter;
import rx.Observable;
/**
* Created by Bernat on 02/04/2015.
*/
public class GetGistDetailClient extends GithubClient<Gist> {
private String id;
public GetGistDetailClient(String id) {
super();
this.id = id;
}
@Override
protected Observable<Gist> getApiObservable(RestAdapter restAdapter) {
return restAdapter.create(GistsService.class).gistDetail(id);
}
}