Class DefaultFindService

java.lang.Object
dev.reuss.tmdb.domain.find.DefaultFindService
All Implemented Interfaces:
FindService

public final class DefaultFindService extends Object implements FindService
Default FindService implementation backed by the TMDB HTTP client.
  • Constructor Details

    • DefaultFindService

      public DefaultFindService(TmdbHttpClient httpClient)
  • Method Details

    • byExternalId

      public FindResults byExternalId(ExternalId externalId, ExternalSource externalSource)
      Description copied from interface: FindService
      Finds TMDB objects by external id.
      Specified by:
      byExternalId in interface FindService
      Parameters:
      externalId - the external id
      externalSource - the external id source
      Returns:
      matching TMDB objects grouped by result type
    • byExternalId

      public FindResults byExternalId(ExternalId externalId, ExternalSource externalSource, Language language)
      Description copied from interface: FindService
      Finds TMDB objects by external id using a specific language.
      Specified by:
      byExternalId in interface FindService
      Parameters:
      externalId - the external id
      externalSource - the external id source
      language - the response language
      Returns:
      matching TMDB objects grouped by result type