package net.goeasyway.uploadimage.presenter;
import net.goeasyway.uploadimage.model.Photo;
import net.goeasyway.uploadimage.model.getModel;
import net.goeasyway.uploadimage.model.getModelIMpl;
import net.goeasyway.uploadimage.utils.Finish;
import net.goeasyway.uploadimage.view.getView;
import java.util.List;
/**
* Created by lenovo on 2017/12/15.
*/
public class getPresenterImpl{
private final getModel model;
getView view;
public getPresenterImpl(getView view) {
this.view = view;
model=new getModelIMpl();
}
public void guanlian(){
model.getData(new Finish<List<Photo>>() {
@Override
public void onfinish(List<Photo> photos) {
view.ShowData(photos);
}
});
}
}