Android-cleanarchitecture: 关于data层 datafractory的疑问

Created on 7 Jul 2016  ·  3Comments  ·  Source: android10/Android-CleanArchitecture

data层,示例代码里就只是一个user数据的网络获取和本地缓存,建立了一个userdatafactory,比如又有了新闻数据,天气数据等。那有几个数据就建立几个对应的datafactory吗?我现在是想把多个数据源都放在一个factory ,但是发现判断缓存是否过期和是否已经缓存不知道怎么处理,所以能指点下吗?

Most helpful comment

Could you english please?

All 3 comments

Could you english please?

Haha, @lenguyenthanh , it is Chinese to be begged to English!

Closing since we cannot help here @chaozaiai until this is translated to english. Sorry.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZherebtsovAlexandr picture ZherebtsovAlexandr  ·  3Comments

rshah picture rshah  ·  6Comments

misrakli picture misrakli  ·  5Comments

donlucard picture donlucard  ·  3Comments

Joy-Whale picture Joy-Whale  ·  5Comments