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 Integer koMatch = 0; protected Integer showTable = 0; 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 Integer getShowTable() { return this.showTable; } public void setShowTable(boolean showTable) { this.showTable = showTable ? 0 : 1; } public Boolean getKoMatch() { return this.koMatch == 1; } public void setKoMatch(Boolean koMatch) { this.koMatch = koMatch ? 0 : 1; } public void setUpdateStatus(COMPARISON newStatus) { this.updateStatus = newStatus; } public COMPARISON getUpdateStatus() { return this.updateStatus; } }