Main class
This commit is contained in:
parent
71cd5ad33b
commit
72698106a5
46
buisnesslogic/src/main/java/com/plannaplan/App.java
Normal file
46
buisnesslogic/src/main/java/com/plannaplan/App.java
Normal file
@ -0,0 +1,46 @@
|
||||
package com.plannaplan;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.plannaplan.types.AppStates;
|
||||
|
||||
public class App {
|
||||
private static App instance;
|
||||
private Date round1;
|
||||
private Date round2;
|
||||
private AppStates state;
|
||||
|
||||
private App() {
|
||||
}
|
||||
|
||||
public AppStates getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(AppStates state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Date getRound2() {
|
||||
return round2;
|
||||
}
|
||||
|
||||
public void setRound2(Date round2) {
|
||||
this.round2 = round2;
|
||||
}
|
||||
|
||||
public Date getRound1() {
|
||||
return round1;
|
||||
}
|
||||
|
||||
public void setRound1(Date round1) {
|
||||
this.round1 = round1;
|
||||
}
|
||||
|
||||
public App getInstance() {
|
||||
if (this.instance == null) {
|
||||
this.instance = new App();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.plannaplan.types;
|
||||
|
||||
public enum AppStates {
|
||||
STOPPED, RUNNING, PAUSED
|
||||
}
|
Loading…
Reference in New Issue
Block a user