Skip to content

1.0.2

Compare
Choose a tag to compare
@LuckyJayce LuckyJayce released this 26 May 10:57
· 80 commits to master since this release

为了更好的适应OKhttp
ResponseSender 支持子线程调用sendData哦,调用后自动在UI线程更新通知UI,比如

 call.enqueue(new Callback() {

        @Override
        public void onFailure(Request request, IOException e) {
            sender.sendError(e);
        }

        @Override
        public void onResponse(Response response) throws IOException {
            sender.sendData(books);
        }
});