Package com.sportdataapi.data
Class TopScorer
java.lang.Object
com.sportdataapi.data.TopScorer
public class TopScorer
extends java.lang.Object
Top scorer object for Sportdataapi.com.
- Author:
- ralph
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TopScorer.Player
Player object for scorers in Sportdataapi.com.static class
TopScorer.ScoredGoals
Scored goals for top scorers object in sportdataapi.com.class
TopScorer.Team
Team object for scorers in Sportdataapi.com. -
Constructor Summary
Constructors Constructor Description TopScorer()
Constructor. -
Method Summary
Modifier and Type Method Description TopScorer.ScoredGoals
getGoals()
Returns the goals.int
getLeagueId()
Returns the leagueId.int
getMatchesPlayed()
Returns the matchesPlayed.int
getMinutesPlayed()
Returns the minutesPlayed.int
getPenalties()
Returns the penalties.TopScorer.Player
getPlayer()
Returns the player.int
getPosition()
Returns the position.int
getSeasonId()
Returns the seasonId.int
getSubstitutedIn()
Returns the substitutedIn.TopScorer.Team
getTeam()
Returns the team.void
setGoals(TopScorer.ScoredGoals goals)
Sets the goals.void
setLeagueId(int leagueId)
Sets the leagueId.void
setMatchesPlayed(int matchesPlayed)
Sets the matchesPlayed.void
setMinutesPlayed(int minutesPlayed)
Sets the minutesPlayed.void
setPenalties(int penalties)
Sets the penalties.void
setPlayer(TopScorer.Player player)
Sets the player.void
setPosition(int position)
Sets the position.void
setSeasonId(int seasonId)
Sets the seasonId.void
setSubstitutedIn(int substitutedIn)
Sets the substitutedIn.void
setTeam(TopScorer.Team team)
Sets the team.java.lang.String
toString()
-
Constructor Details
-
TopScorer
public TopScorer()Constructor.
-
-
Method Details
-
getPosition
public int getPosition()Returns the position.- Returns:
- the position
-
setPosition
public void setPosition(int position)Sets the position.- Parameters:
position
- the position to set
-
getPlayer
Returns the player.- Returns:
- the player
-
setPlayer
Sets the player.- Parameters:
player
- the player to set
-
getTeam
Returns the team.- Returns:
- the team
-
setTeam
Sets the team.- Parameters:
team
- the team to set
-
getLeagueId
public int getLeagueId()Returns the leagueId.- Returns:
- the leagueId
-
setLeagueId
public void setLeagueId(int leagueId)Sets the leagueId.- Parameters:
leagueId
- the leagueId to set
-
getSeasonId
public int getSeasonId()Returns the seasonId.- Returns:
- the seasonId
-
setSeasonId
public void setSeasonId(int seasonId)Sets the seasonId.- Parameters:
seasonId
- the seasonId to set
-
getMatchesPlayed
public int getMatchesPlayed()Returns the matchesPlayed.- Returns:
- the matchesPlayed
-
setMatchesPlayed
public void setMatchesPlayed(int matchesPlayed)Sets the matchesPlayed.- Parameters:
matchesPlayed
- the matchesPlayed to set
-
getMinutesPlayed
public int getMinutesPlayed()Returns the minutesPlayed.- Returns:
- the minutesPlayed
-
setMinutesPlayed
public void setMinutesPlayed(int minutesPlayed)Sets the minutesPlayed.- Parameters:
minutesPlayed
- the minutesPlayed to set
-
getSubstitutedIn
public int getSubstitutedIn()Returns the substitutedIn.- Returns:
- the substitutedIn
-
setSubstitutedIn
public void setSubstitutedIn(int substitutedIn)Sets the substitutedIn.- Parameters:
substitutedIn
- the substitutedIn to set
-
getGoals
Returns the goals.- Returns:
- the goals
-
setGoals
Sets the goals.- Parameters:
goals
- the goals to set
-
getPenalties
public int getPenalties()Returns the penalties.- Returns:
- the penalties
-
setPenalties
public void setPenalties(int penalties)Sets the penalties.- Parameters:
penalties
- the penalties to set
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-