|
@@ -10,9 +10,17 @@ import com.miekir.newmvp.main.bean.MainBean;
|
|
|
* Description:
|
|
* Description:
|
|
|
*/
|
|
*/
|
|
|
public interface IMainModel {
|
|
public interface IMainModel {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取数据
|
|
|
|
|
+ * @param callback 回调
|
|
|
|
|
+ */
|
|
|
void goGetData(IDataCallback callback);
|
|
void goGetData(IDataCallback callback);
|
|
|
|
|
|
|
|
interface IDataCallback {
|
|
interface IDataCallback {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 数据回调
|
|
|
|
|
+ * @param bean
|
|
|
|
|
+ */
|
|
|
void onDataGet(MainBean bean);
|
|
void onDataGet(MainBean bean);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|