Class PopulationStatisticsAdopteesClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.adoptees.PopulationStatisticsAdopteesClient
-
public class PopulationStatisticsAdopteesClient extends AbstractClient
Client which handles population statistics adoptees data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsAdopteesClient()Default constructor.PopulationStatisticsAdopteesClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getAdoptions()Fetch all adoptions data.List<ResponseModel>getAdoptions(Collection<String> sexes, Collection<Integer> yearsOfBirths, Collection<Integer> years)Fetch all adoptions data which match the input constraints.URLEndpointgetUrl()Returns the URL endpoint which this client represents.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
-
-
-
-
Constructor Detail
-
PopulationStatisticsAdopteesClient
public PopulationStatisticsAdopteesClient()
Default constructor.
-
PopulationStatisticsAdopteesClient
public PopulationStatisticsAdopteesClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getAdoptions
public List<ResponseModel> getAdoptions()
Fetch all adoptions data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getAdoptions(Collection, Collection, Collection)
-
getAdoptions
public List<ResponseModel> getAdoptions(Collection<String> sexes, Collection<Integer> yearsOfBirths, Collection<Integer> years)
Fetch all adoptions data which match the input constraints.
- Parameters:
sexes- the sexesyearsOfBirths- the years of birthsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClientReturns the URL endpoint which this client represents.
- Specified by:
getUrlin classAbstractClient- Returns:
- the URL endpoint for this client
-
-