use of com.xinshang.audient.model.entities.SongDetailResult in project Audient by komamj.
the class AuditionPresenter method loadAudient.
@Override
public void loadAudient(String id) {
Disposable disposable = mRepository.getSongDetailResult(id).map(new Function<SongDetailResult, Audient>() {
@Override
public Audient apply(SongDetailResult songDetailResult) throws Exception {
return songDetailResult.audient;
}
}).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribeWith(new DisposableSubscriber<Audient>() {
@Override
public void onNext(Audient audient) {
mView.showAudient(audient);
}
@Override
public void onError(Throwable t) {
LogUtils.e(TAG, "loadNowPlaying onError:" + t.toString());
}
@Override
public void onComplete() {
}
});
mDisposables.add(disposable);
}
Aggregations