Package com.sportdataapi.data
Class MatchResults
java.lang.Object
com.sportdataapi.data.MatchResults
public class MatchResults
extends java.lang.Object
Provides various match results for a match.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description MatchResults()
Constructor. -
Method Summary
Modifier and Type Method Description MatchResult
getEndTime()
Returns the endTime.MatchResult
getExtraTime()
Returns the extraTime.MatchResult
getHalfTime()
Returns the halfTime.MatchResult
getLast()
Returns the latest result (penalties before extra time before end time before half time).MatchResult
getPenalties()
Returns the penalties.MatchResult
getScores()
Returns the scores.void
setEndTime(MatchResult endTime)
Sets the endTime.void
setExtraTime(MatchResult extraTime)
Sets the extraTime.void
setGuestScore(int guestScore)
Sets the guest score.void
setHalfTime(MatchResult halfTime)
Sets the halfTime.void
setHomeScore(int homeScore)
Sets the home score.void
setPenalties(MatchResult penalties)
Sets the penalties.void
setScores(MatchResult scores)
Sets the scores.java.lang.String
toString()
-
Constructor Details
-
MatchResults
public MatchResults()Constructor.
-
-
Method Details
-
setHomeScore
public void setHomeScore(int homeScore)Sets the home score.- Parameters:
homeScore
- the homeScore to set
-
setGuestScore
public void setGuestScore(int guestScore)Sets the guest score.- Parameters:
guestScore
- the guestScore to set
-
getScores
Returns the scores.- Returns:
- the scores
-
setScores
Sets the scores.- Parameters:
scores
- the scores to set
-
getHalfTime
Returns the halfTime.- Returns:
- the halfTime
-
setHalfTime
Sets the halfTime.- Parameters:
halfTime
- the halfTime to set
-
getEndTime
Returns the endTime.- Returns:
- the endTime
-
setEndTime
Sets the endTime.- Parameters:
endTime
- the endTime to set
-
getExtraTime
Returns the extraTime.- Returns:
- the extraTime
-
setExtraTime
Sets the extraTime.- Parameters:
extraTime
- the extraTime to set
-
getPenalties
Returns the penalties.- Returns:
- the penalties
-
setPenalties
Sets the penalties.- Parameters:
penalties
- the penalties to set
-
getLast
Returns the latest result (penalties before extra time before end time before half time).- Returns:
- best result
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-