Skip to content

hytcyjb/yjboretrofitcsdndemo

Repository files navigation

###1.csdn博客地址: 基于Retrofit2,okhttp3的数据缓存(cache)技术--深入挖掘

###2.个人简介: /****

  • 基于Retrofit2,okhttp3的数据缓存(cache)技术---进一步研究
  • 2016年10月30日16:48:17
  • @author yjbo
  • @mail :1457521527@qq.com / ###3.主要解决问题: /***
  • 研究以下四个(2*2)方面:
  • 有网时:
  • 1.每次都请求实时数据;
  • 2.特定时间之后请求数据;(比如:特定时间为20s)
  • 无网时
  • 1.无限时请求有网请求好的数据;
  • 2.特定时间之前请求有网请求好的数据;((比如:特定时间为20s))

*/

###*更新···· ···2017年2月12日11:59:32

a.封装请求的方法;

b.重新设置了返回值的类型,现在可以定义自己想 要的class类了

###4.效果如下: sample

###部分截图: 效果图1 效果图2 效果图3

###1.csdn博客地址:基于Retrofit2,okhttp3的数据缓存(cache)技术--深入挖掘

About

基于Retrofit2,okhttp3的数据缓存(cache)技术---进一步研究

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages