Class SportEventStatusFactoryImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.SportEventStatusFactoryImpl
All Implemented Interfaces:
SportEventStatusFactory

public class SportEventStatusFactoryImpl extends Object implements SportEventStatusFactory
Factory used to build various sport event status instances such as MatchStatus,...
  • Constructor Details

  • Method Details

    • buildSportEventStatus

      public <T extends CompetitionStatus> T buildSportEventStatus(Urn eventId, Class<T> targetClass, boolean makeApiCall)
      Builds the requested sport event status type
      Specified by:
      buildSportEventStatus in interface SportEventStatusFactory
      Type Parameters:
      T - the expected return type
      Parameters:
      eventId - a Urn representing the id of the sport event whose status to build
      targetClass - the expected return type class
      makeApiCall - should the API call be made if necessary
      Returns:
      a CompetitionStatus representing the status of the specified sport event