基于MVP架构的OKHttp3的封装

一、OKHttp的优势 url测试地址:http://httpbin.org 二、首先对Response进行封装 ①定义IResponse接口 public interface IResponse { //状态码 int getCode(); //数据体 String getData(); } ②BaseResponse实现继承IResponse public cl
相关文章
相关标签/搜索