Add show table update, add matches list creator
This commit is contained in:
@@ -199,6 +199,10 @@ public class TLWMatch extends BaseMatch{
|
||||
return this.groupId;
|
||||
}
|
||||
|
||||
public Integer getShowTable() {
|
||||
return this.showTable;
|
||||
}
|
||||
|
||||
public String getFormulaHome() {
|
||||
String formula = "'D'";
|
||||
if(this.teamIdHome != null) {
|
||||
@@ -270,9 +274,15 @@ public class TLWMatch extends BaseMatch{
|
||||
this.matchDatetime = matchDateTime;
|
||||
}
|
||||
|
||||
public void setShowTable(Boolean showTable) {
|
||||
this.showTable = showTable ? 0 : 1;
|
||||
}
|
||||
|
||||
public void updateMatch(APIFootballMatch apiFootballMatch) {
|
||||
this.teamIdHome = TeamIDMatcher.getTippligaIdFromApiFootballId(apiFootballMatch.getTeamIdHome());
|
||||
this.teamIdGuest = TeamIDMatcher.getTippligaIdFromApiFootballId(apiFootballMatch.getTeamIdGuest());
|
||||
this.teamNameHome = apiFootballMatch.getTeamNameHome();
|
||||
this.teamNameGuest = apiFootballMatch.getTeamNameGuest();
|
||||
this.goalsHome = apiFootballMatch.getGoalsHome();
|
||||
this.goalsGuest = apiFootballMatch.getGoalsGuest();
|
||||
this.matchDatetime = apiFootballMatch.getMatchDateTime().replace("T", " ").substring(0, 19);
|
||||
|
||||
Reference in New Issue
Block a user