public class PresenterA extends BasePresenter<ModelA, ViewA> {
public PresenterA(ModelA modelA) {
super(modelA)
}
@Override
public void attachView(@NonNull ViewA viewA) {
super.attachView(viewA);
}
@Override
protected void updateView() {
//Update the view
getView().showButtonA();
}
public void getDataA() {
getModel().getDataA();
}
}
public class PresenterB extends BasePresenter<ModelB, ViewB> {
public PresenterB(ModelB modelB) {
super(modelB)
}
@Override
public void attachView(@NonNull ViewB viewB) {
super.attachView(viewB);
}
@Override
protected void updateView() {
//Update the view
getView().showButtonB();
}
public void getDataB() {
getModel().getDataB();
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.