Modifier and Type | Class and Description |
---|---|
static class |
Match.Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Modifier and Type | Field and Description |
---|---|
static Match.Companion |
Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Constructor and Description |
---|
Match(int id,
int homeTeamId,
Team homeTeam,
int awayTeamId,
Team awayTeam,
int matchday,
int homeCurrentScore,
int awayCurrentScore,
int homeHtScore,
int awayHtScore,
int homeFtScore,
int awayFtScore,
java.lang.String kickoff,
boolean started,
boolean finished)
Model class that models a Match
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
:
|
int |
component10()
:
|
int |
component11()
:
|
int |
component12()
:
|
java.lang.String |
component13()
:
|
boolean |
component14()
:
|
boolean |
component15()
:
|
int |
component2()
:
|
Team |
component3()
:
|
int |
component4()
:
|
Team |
component5()
:
|
int |
component6()
:
|
int |
component7()
:
|
int |
component8()
:
|
int |
component9()
:
|
Match |
copy(int id,
int homeTeamId,
Team homeTeam,
int awayTeamId,
Team awayTeam,
int matchday,
int homeCurrentScore,
int awayCurrentScore,
int homeHtScore,
int awayHtScore,
int homeFtScore,
int awayFtScore,
java.lang.String kickoff,
boolean started,
boolean finished)
Model class that models a Match
|
boolean |
equals(java.lang.Object p) |
int |
getAwayCurrentScore()
:
|
int |
getAwayFtScore()
:
|
int |
getAwayHtScore()
:
|
Team |
getAwayTeam()
:
|
int |
getAwayTeamId()
:
|
boolean |
getFinished()
:
|
int |
getHomeCurrentScore()
:
|
int |
getHomeFtScore()
:
|
int |
getHomeHtScore()
:
|
Team |
getHomeTeam()
:
|
int |
getHomeTeamId()
:
|
int |
getId()
:
|
java.lang.String |
getKickoff()
:
|
int |
getMatchday()
:
|
boolean |
getStarted()
:
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Converts the model object into a JSON object
|
java.lang.String |
toString() |
public static Match.Companion Companion
Companion object that implements static methods to generate the model using a JSONObject.
public Match(int id, int homeTeamId, Team homeTeam, int awayTeamId, Team awayTeam, int matchday, int homeCurrentScore, int awayCurrentScore, int homeHtScore, int awayHtScore, int homeFtScore, int awayFtScore, java.lang.String kickoff, boolean started, boolean finished)
Model class that models a Match
id
- : The database ID of the matchhomeTeamId
- : The ID of the home teamhomeTeam
- : The home teamawayTeamId
- : The ID of the away teamawayTeam
- : The away teammatchday
- : The match day of the matchhomeCurrentScore
- : The current score of the home teamawayCurrentScore
- : The current score of the away teamhomeHtScore
- : The score of the home team at half timeawayHtScore
- : The score of the away team at half timehomeFtScore
- : The score of the home team at full timeawayFtScore
- : The score of the away team at full timekickoff
- : The time at which the match starts as a UTC time stringstarted
- : Indicates whether or not the match has already startedfinished
- : Indicates whether or not the match has finishedid
- : The database ID of the matchhomeTeamId
- : The ID of the home teamhomeTeam
- : The home teamawayTeamId
- : The ID of the away teamawayTeam
- : The away teammatchday
- : The match day of the matchhomeCurrentScore
- : The current score of the home teamawayCurrentScore
- : The current score of the away teamhomeHtScore
- : The score of the home team at half timeawayHtScore
- : The score of the away team at half timehomeFtScore
- : The score of the home team at full timeawayFtScore
- : The score of the away team at full timekickoff
- : The time at which the match starts as a UTC time stringstarted
- : Indicates whether or not the match has already startedfinished
- : Indicates whether or not the match has finishedpublic org.json.JSONObject toJson()
Converts the model object into a JSON object
public int getId()
:
The database ID of the match
public int getHomeTeamId()
:
The ID of the home team
public Team getHomeTeam()
:
The home team
public int getAwayTeamId()
:
The ID of the away team
public Team getAwayTeam()
:
The away team
public int getMatchday()
:
The match day of the match
public int getHomeCurrentScore()
:
The current score of the home team
public int getAwayCurrentScore()
:
The current score of the away team
public int getHomeHtScore()
:
The score of the home team at half time
public int getAwayHtScore()
:
The score of the away team at half time
public int getHomeFtScore()
:
The score of the home team at full time
public int getAwayFtScore()
:
The score of the away team at full time
public java.lang.String getKickoff()
:
The time at which the match starts as a UTC time string
public boolean getStarted()
:
Indicates whether or not the match has already started
public boolean getFinished()
:
Indicates whether or not the match has finished
public int component1()
:
The database ID of the match
public int component2()
:
The ID of the home team
public Team component3()
:
The home team
public int component4()
:
The ID of the away team
public Team component5()
:
The away team
public int component6()
:
The match day of the match
public int component7()
:
The current score of the home team
public int component8()
:
The current score of the away team
public int component9()
:
The score of the home team at half time
public int component10()
:
The score of the away team at half time
public int component11()
:
The score of the home team at full time
public int component12()
:
The score of the away team at full time
public java.lang.String component13()
:
The time at which the match starts as a UTC time string
public boolean component14()
:
Indicates whether or not the match has already started
public boolean component15()
:
Indicates whether or not the match has finished
public Match copy(int id, int homeTeamId, Team homeTeam, int awayTeamId, Team awayTeam, int matchday, int homeCurrentScore, int awayCurrentScore, int homeHtScore, int awayHtScore, int homeFtScore, int awayFtScore, java.lang.String kickoff, boolean started, boolean finished)
Model class that models a Match
id
- : The database ID of the matchhomeTeamId
- : The ID of the home teamhomeTeam
- : The home teamawayTeamId
- : The ID of the away teamawayTeam
- : The away teammatchday
- : The match day of the matchhomeCurrentScore
- : The current score of the home teamawayCurrentScore
- : The current score of the away teamhomeHtScore
- : The score of the home team at half timeawayHtScore
- : The score of the away team at half timehomeFtScore
- : The score of the home team at full timeawayFtScore
- : The score of the away team at full timekickoff
- : The time at which the match starts as a UTC time stringstarted
- : Indicates whether or not the match has already startedfinished
- : Indicates whether or not the match has finishedpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)