Modifier and Type | Class and Description |
---|---|
static class |
Goal.Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Modifier and Type | Field and Description |
---|---|
static Goal.Companion |
Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Constructor and Description |
---|
Goal(int id,
int playerId,
Player player,
int matchId,
Match match,
int minute,
int minuteEt,
int homeScore,
int awayScore,
boolean ownGoal,
boolean penalty)
Model class that models a Goal
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
:
|
boolean |
component10()
:
|
boolean |
component11()
:
|
int |
component2()
:
|
Player |
component3()
:
|
int |
component4()
:
|
Match |
component5()
:
|
int |
component6()
:
|
int |
component7()
:
|
int |
component8()
:
|
int |
component9()
:
|
Goal |
copy(int id,
int playerId,
Player player,
int matchId,
Match match,
int minute,
int minuteEt,
int homeScore,
int awayScore,
boolean ownGoal,
boolean penalty)
Model class that models a Goal
|
boolean |
equals(java.lang.Object p) |
int |
getAwayScore()
:
|
int |
getHomeScore()
:
|
int |
getId()
:
|
Match |
getMatch()
:
|
int |
getMatchId()
:
|
int |
getMinute()
:
|
int |
getMinuteEt()
:
|
boolean |
getOwnGoal()
:
|
boolean |
getPenalty()
:
|
Player |
getPlayer()
:
|
int |
getPlayerId()
:
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Converts the model object into a JSON object
|
java.lang.String |
toString() |
public static Goal.Companion Companion
Companion object that implements static methods to generate the model using a JSONObject.
public Goal(int id, int playerId, Player player, int matchId, Match match, int minute, int minuteEt, int homeScore, int awayScore, boolean ownGoal, boolean penalty)
Model class that models a Goal
id
- : The database ID of the goalplayerId
- : The ID of the player that scored this goalplayer
- : The player that scored this goalmatchId
- : The ID of the match in which the goal was scoredmatch
- : The match in which the goal was scoredminute
- : The minute of the match in which the goal was scoredminuteEt
- : The minute of extra time in which the goal was scoredhomeScore
- : The score of the home team after this goalawayScore
- : The score of the away team after this goalownGoal
- : Indicates whether or not this goal was an own goalpenalty
- : Indicates whether or not this goal was a penaltyid
- : The database ID of the goalplayerId
- : The ID of the player that scored this goalplayer
- : The player that scored this goalmatchId
- : The ID of the match in which the goal was scoredmatch
- : The match in which the goal was scoredminute
- : The minute of the match in which the goal was scoredminuteEt
- : The minute of extra time in which the goal was scoredhomeScore
- : The score of the home team after this goalawayScore
- : The score of the away team after this goalownGoal
- : Indicates whether or not this goal was an own goalpenalty
- : Indicates whether or not this goal was a penaltypublic org.json.JSONObject toJson()
Converts the model object into a JSON object
public int getId()
:
The database ID of the goal
public int getPlayerId()
:
The ID of the player that scored this goal
public Player getPlayer()
:
The player that scored this goal
public int getMatchId()
:
The ID of the match in which the goal was scored
public Match getMatch()
:
The match in which the goal was scored
public int getMinute()
:
The minute of the match in which the goal was scored
public int getMinuteEt()
:
The minute of extra time in which the goal was scored
public int getHomeScore()
:
The score of the home team after this goal
public int getAwayScore()
:
The score of the away team after this goal
public boolean getOwnGoal()
:
Indicates whether or not this goal was an own goal
public boolean getPenalty()
:
Indicates whether or not this goal was a penalty
public int component1()
:
The database ID of the goal
public int component2()
:
The ID of the player that scored this goal
public Player component3()
:
The player that scored this goal
public int component4()
:
The ID of the match in which the goal was scored
public Match component5()
:
The match in which the goal was scored
public int component6()
:
The minute of the match in which the goal was scored
public int component7()
:
The minute of extra time in which the goal was scored
public int component8()
:
The score of the home team after this goal
public int component9()
:
The score of the away team after this goal
public boolean component10()
:
Indicates whether or not this goal was an own goal
public boolean component11()
:
Indicates whether or not this goal was a penalty
public Goal copy(int id, int playerId, Player player, int matchId, Match match, int minute, int minuteEt, int homeScore, int awayScore, boolean ownGoal, boolean penalty)
Model class that models a Goal
id
- : The database ID of the goalplayerId
- : The ID of the player that scored this goalplayer
- : The player that scored this goalmatchId
- : The ID of the match in which the goal was scoredmatch
- : The match in which the goal was scoredminute
- : The minute of the match in which the goal was scoredminuteEt
- : The minute of extra time in which the goal was scoredhomeScore
- : The score of the home team after this goalawayScore
- : The score of the away team after this goalownGoal
- : Indicates whether or not this goal was an own goalpenalty
- : Indicates whether or not this goal was a penaltypublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)