feat: add comprehensive API exploration scripts and update StandingsScraper to map match data to GameMatch models
This commit is contained in:
152
src/main/java/org/example/models/GameMatch.java
Normal file
152
src/main/java/org/example/models/GameMatch.java
Normal file
@@ -0,0 +1,152 @@
|
||||
package org.example.models;
|
||||
|
||||
import com.google.firebase.database.PropertyName;
|
||||
|
||||
public class GameMatch {
|
||||
|
||||
@PropertyName("home_id")
|
||||
private int homeId;
|
||||
|
||||
@PropertyName("away_id")
|
||||
private int awayId;
|
||||
|
||||
@PropertyName("home_nome")
|
||||
private String homeName;
|
||||
|
||||
@PropertyName("away_nome")
|
||||
private String awayName;
|
||||
|
||||
@PropertyName("home_logo")
|
||||
private String homeLogo;
|
||||
|
||||
@PropertyName("away_logo")
|
||||
private String awayLogo;
|
||||
|
||||
@PropertyName("home_golos")
|
||||
private Integer homeGoals;
|
||||
|
||||
@PropertyName("away_golos")
|
||||
private Integer awayGoals;
|
||||
|
||||
@PropertyName("data")
|
||||
private String gameDate;
|
||||
|
||||
@PropertyName("hora")
|
||||
private String gameHour;
|
||||
|
||||
@PropertyName("campo")
|
||||
private String stadium;
|
||||
|
||||
public GameMatch() {
|
||||
}
|
||||
|
||||
@PropertyName("home_id")
|
||||
public int getHomeId() {
|
||||
return homeId;
|
||||
}
|
||||
|
||||
@PropertyName("home_id")
|
||||
public void setHomeId(int homeId) {
|
||||
this.homeId = homeId;
|
||||
}
|
||||
|
||||
@PropertyName("away_id")
|
||||
public int getAwayId() {
|
||||
return awayId;
|
||||
}
|
||||
|
||||
@PropertyName("away_id")
|
||||
public void setAwayId(int awayId) {
|
||||
this.awayId = awayId;
|
||||
}
|
||||
|
||||
@PropertyName("home_nome")
|
||||
public String getHomeName() {
|
||||
return homeName;
|
||||
}
|
||||
|
||||
@PropertyName("home_nome")
|
||||
public void setHomeName(String homeName) {
|
||||
this.homeName = homeName;
|
||||
}
|
||||
|
||||
@PropertyName("away_nome")
|
||||
public String getAwayName() {
|
||||
return awayName;
|
||||
}
|
||||
|
||||
@PropertyName("away_nome")
|
||||
public void setAwayName(String awayName) {
|
||||
this.awayName = awayName;
|
||||
}
|
||||
|
||||
@PropertyName("home_logo")
|
||||
public String getHomeLogo() {
|
||||
return homeLogo;
|
||||
}
|
||||
|
||||
@PropertyName("home_logo")
|
||||
public void setHomeLogo(String homeLogo) {
|
||||
this.homeLogo = homeLogo;
|
||||
}
|
||||
|
||||
@PropertyName("away_logo")
|
||||
public String getAwayLogo() {
|
||||
return awayLogo;
|
||||
}
|
||||
|
||||
@PropertyName("away_logo")
|
||||
public void setAwayLogo(String awayLogo) {
|
||||
this.awayLogo = awayLogo;
|
||||
}
|
||||
|
||||
@PropertyName("home_golos")
|
||||
public Integer getHomeGoals() {
|
||||
return homeGoals;
|
||||
}
|
||||
|
||||
@PropertyName("home_golos")
|
||||
public void setHomeGoals(Integer homeGoals) {
|
||||
this.homeGoals = homeGoals;
|
||||
}
|
||||
|
||||
@PropertyName("away_golos")
|
||||
public Integer getAwayGoals() {
|
||||
return awayGoals;
|
||||
}
|
||||
|
||||
@PropertyName("away_golos")
|
||||
public void setAwayGoals(Integer awayGoals) {
|
||||
this.awayGoals = awayGoals;
|
||||
}
|
||||
|
||||
@PropertyName("data")
|
||||
public String getGameDate() {
|
||||
return gameDate;
|
||||
}
|
||||
|
||||
@PropertyName("data")
|
||||
public void setGameDate(String gameDate) {
|
||||
this.gameDate = gameDate;
|
||||
}
|
||||
|
||||
@PropertyName("hora")
|
||||
public String getGameHour() {
|
||||
return gameHour;
|
||||
}
|
||||
|
||||
@PropertyName("hora")
|
||||
public void setGameHour(String gameHour) {
|
||||
this.gameHour = gameHour;
|
||||
}
|
||||
|
||||
@PropertyName("campo")
|
||||
public String getStadium() {
|
||||
return stadium;
|
||||
}
|
||||
|
||||
@PropertyName("campo")
|
||||
public void setStadium(String stadium) {
|
||||
this.stadium = stadium;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user