95 lines
2.3 KiB
Java
95 lines
2.3 KiB
Java
package de.jeyp91;
|
|
|
|
public abstract class BaseMatch {
|
|
|
|
public static final Integer STATUS_NOTSTARTED = 0;
|
|
public static final Integer STATUS_STARTED = 1;
|
|
public static final Integer STATUS_PROVISIONAL_RESULT_AVAILABLE = 2;
|
|
public static final Integer STATUS_FINISHED = 3;
|
|
public static final Integer STATUS_NOT_EVALUATED = 4;
|
|
|
|
public enum COMPARISON {
|
|
IDENTICAL,
|
|
DIFFERENT,
|
|
DIFFERENT_DATETIME,
|
|
DIFFERENT_RESULT
|
|
}
|
|
|
|
protected Integer teamIdHome;
|
|
protected Integer teamIdGuest;
|
|
protected String teamNameHome = null;
|
|
protected String teamNameGuest = null;
|
|
protected Integer goalsHome = null;
|
|
protected Integer goalsGuest = null;
|
|
protected Integer goalsOvertimeHome = null;
|
|
protected Integer goalsOvertimeGuest = null;
|
|
protected Integer goalsPenaltyHome = null;
|
|
protected Integer goalsPenaltyGuest = null;
|
|
protected Integer matchday = null;
|
|
protected String matchDatetime = null;
|
|
protected Integer status = null;
|
|
protected COMPARISON updateStatus = COMPARISON.IDENTICAL;
|
|
|
|
public Integer getMatchday() {
|
|
return this.matchday;
|
|
}
|
|
|
|
public Integer getTeamIdHome() {
|
|
return this.teamIdHome;
|
|
}
|
|
|
|
public Integer getTeamIdGuest() {
|
|
return this.teamIdGuest;
|
|
}
|
|
|
|
public String getMatchDateTime() {
|
|
return this.matchDatetime;
|
|
}
|
|
|
|
public Integer getGoalsHome() {
|
|
return this.goalsHome;
|
|
}
|
|
|
|
public Integer getGoalsGuest() {
|
|
return this.goalsGuest;
|
|
}
|
|
|
|
public Integer getGoalsOvertimeHome() {
|
|
return this.goalsOvertimeHome;
|
|
}
|
|
|
|
public Integer getGoalsOvertimeGuest() {
|
|
return this.goalsOvertimeGuest;
|
|
}
|
|
|
|
public Integer getGoalsPenaltyHome() {
|
|
return this.goalsPenaltyHome;
|
|
}
|
|
|
|
public Integer getGoalsPenaltyGuest() {
|
|
return this.goalsPenaltyGuest;
|
|
}
|
|
|
|
public String getTeamNameHome() {
|
|
return this.teamNameHome;
|
|
}
|
|
|
|
public String getTeamNameGuest() {
|
|
return this.teamNameGuest;
|
|
}
|
|
|
|
public void setStatus(int status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public Integer getStatus() {
|
|
return this.status;
|
|
}
|
|
|
|
public void setUpdateStatus(COMPARISON newStatus) { this.updateStatus = newStatus; }
|
|
|
|
public COMPARISON getUpdateStatus() {
|
|
return this.updateStatus;
|
|
}
|
|
}
|