Single<List<GitHubComment>> getGistComments() {
        return ServiceGenerator.createService(context, GistCommentService.class)
                .getGistComments(id, 0)
                .flatMapObservable(response -> Observable.fromIterable(response.body().items()))
                .map(comment -> {
                    imageGetter.encode(comment, comment.bodyHtml());
                    return comment;
                })
                .toList();

    }
Create task to refresh the given {@link Gist}.

@param gistId
@param imageGetter
app/src/main/java/com/github/pockethub/android/core/gist/RefreshGistTask.java