Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • ..
  • setting
  • SettingContract.java
Find file
Normal viewHistoryPermalink
SettingContract.java 578 Bytes
Newer Older
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.dayu.bigfish.presenter.setting;


import com.dayu.bigfish.base.BaseModel;
import com.dayu.bigfish.base.BasePresenter;
import com.dayu.bigfish.base.BaseView;

import io.reactivex.Observable;

/**
 * Created by luo on 2016/8/4.
 */
public interface SettingContract {
    interface Model extends BaseModel {
        Observable<String> getNewVersionCode();
    }

    interface View extends BaseView {
        void getNewVersionSuccess(String code);
    }

罗翻's avatar
Mvp结构修改,增加model的注解类和presenter的注解类
497683ff
 
罗翻 committed 7 years ago
22
    abstract class Presenter extends BasePresenter<View> {
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
23 24 25
        public abstract void updataVersion();
    }
}