/Emilia

Material Design Music Player (neteasy api)

Primary LanguageJava

Emilia

Material Design Music Player (neteasy api)

public class Api {

    public <Ensure extends ListListen<List<TracksBean>>,
            Before extends BaseResponse<TracksBean>> void getPlaylistDetail(Ensure ensure){
        Retro.getApi()
                .getPlaylistDetail()
                .map(new Function<BaseResponse<TracksBean>, List<TracksBean>>() {
                    @Override
                    public List<TracksBean> apply(BaseResponse<TracksBean> tracksBeanBaseResponse) throws Exception {
                        return tracksBeanBaseResponse.getList();
                    }
                })
                .subscribe(ensure);
    }
}

Image text

Image text

Image text

Image text

Image text

Image text