feat(presenter): add base presenter abstraction
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
package ru.project.presenter;
|
||||||
|
|
||||||
|
import com.googlecode.lanterna.gui2.WindowBasedTextGUI;
|
||||||
|
import ru.project.model.AppState;
|
||||||
|
|
||||||
|
public abstract class BasePresenter {
|
||||||
|
|
||||||
|
protected final AppState state;
|
||||||
|
protected final WindowBasedTextGUI gui;
|
||||||
|
|
||||||
|
protected BasePresenter(AppState state, WindowBasedTextGUI gui) {
|
||||||
|
this.state = state;
|
||||||
|
this.gui = gui;
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void start();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user