Main class

This commit is contained in:
Filip Izydorczyk 2020-07-27 16:09:44 +02:00
parent 71cd5ad33b
commit 72698106a5
2 changed files with 51 additions and 0 deletions

View 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;
}
}

View File

@ -0,0 +1,5 @@
package com.plannaplan.types;
public enum AppStates {
STOPPED, RUNNING, PAUSED
}