package com.alorma.github.sdk.services.gists;
import com.alorma.github.sdk.bean.dto.request.CommentRequest;
import com.alorma.github.sdk.services.client.GithubClient;
import core.GithubComment;
import retrofit.RestAdapter;
import rx.Observable;
public class PublishGistCommentClient extends GithubClient<GithubComment> {
private String id;
private CommentRequest comment;
public PublishGistCommentClient(String id, CommentRequest comment) {
super();
this.id = id;
this.comment = comment;
}
@Override
protected Observable<GithubComment> getApiObservable(RestAdapter restAdapter) {
return restAdapter.create(GistsService.class).publishComment(id, comment);
}
}