Parse overtime goals
This commit is contained in:
@@ -98,6 +98,10 @@ public class TLWMatch extends BaseMatch{
|
||||
this.teamIdHome = TeamIDMatcher.getTippligaIdFromApiFootballId(apiFootballMatch, TeamIDMatcher.HOME);
|
||||
this.teamIdGuest = TeamIDMatcher.getTippligaIdFromApiFootballId(apiFootballMatch, TeamIDMatcher.GUEST);
|
||||
this.goalsHome = apiFootballMatch.getGoalsHome();
|
||||
this.goalsOvertimeHome = apiFootballMatch.getGoalsOvertimeHome();
|
||||
this.goalsOvertimeGuest = apiFootballMatch.getGoalsOvertimeGuest();
|
||||
this.goalsGuest = apiFootballMatch.getGoalsGuest();
|
||||
this.goalsHome = apiFootballMatch.getGoalsHome();
|
||||
this.goalsGuest = apiFootballMatch.getGoalsGuest();
|
||||
this.matchDatetime = apiFootballMatch.getMatchDateTime().replace("T", " ").substring(0, 19);
|
||||
this.groupId = this.getGroupFromMatchdayString(apiFootballMatch.getRound());
|
||||
@@ -248,6 +252,22 @@ public class TLWMatch extends BaseMatch{
|
||||
return string != null ? "'"+string+"'" : "''";
|
||||
}
|
||||
|
||||
public void setGoalsHome(int goals) {
|
||||
this.goalsHome = goals;
|
||||
}
|
||||
|
||||
public void setGoalsGuest(int goals) {
|
||||
this.goalsGuest = goals;
|
||||
}
|
||||
|
||||
public void setGoalsOvertimeHome(int goals) {
|
||||
this.goalsOvertimeHome = goals;
|
||||
}
|
||||
|
||||
public void setGoalsOvertimeGuest(int goals) {
|
||||
this.goalsOvertimeGuest = goals;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user