MainContract.kt 947 B

1234567891011121314151617181920212223242526
  1. package me.hegj.wandroid.mvp.contract
  2. import com.jess.arms.mvp.IModel
  3. import com.jess.arms.mvp.IView
  4. /**
  5. * ================================================
  6. * Description:
  7. * <p>
  8. * Created by MVPArmsTemplate on 07/08/2019 10:20
  9. * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
  10. * <a href="https://github.com/JessYanCoding">Follow me</a>
  11. * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
  12. * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
  13. * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
  14. * ================================================
  15. */
  16. interface MainContract {
  17. //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
  18. interface View : IView
  19. //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
  20. interface Model : IModel
  21. }