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 Details

  • 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

      public MatchResult getScores()
      Returns the scores.
      Returns:
      the scores
    • setScores

      public void setScores​(MatchResult scores)
      Sets the scores.
      Parameters:
      scores - the scores to set
    • getHalfTime

      public MatchResult getHalfTime()
      Returns the halfTime.
      Returns:
      the halfTime
    • setHalfTime

      public void setHalfTime​(MatchResult halfTime)
      Sets the halfTime.
      Parameters:
      halfTime - the halfTime to set
    • getEndTime

      public MatchResult getEndTime()
      Returns the endTime.
      Returns:
      the endTime
    • setEndTime

      public void setEndTime​(MatchResult endTime)
      Sets the endTime.
      Parameters:
      endTime - the endTime to set
    • getExtraTime

      public MatchResult getExtraTime()
      Returns the extraTime.
      Returns:
      the extraTime
    • setExtraTime

      public void setExtraTime​(MatchResult extraTime)
      Sets the extraTime.
      Parameters:
      extraTime - the extraTime to set
    • getPenalties

      public MatchResult getPenalties()
      Returns the penalties.
      Returns:
      the penalties
    • setPenalties

      public void setPenalties​(MatchResult penalties)
      Sets the penalties.
      Parameters:
      penalties - the penalties to set
    • getLast

      public MatchResult 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 class java.lang.Object