Class PopulationStatisticsAsylumSeekersClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.asylumseekers.PopulationStatisticsAsylumSeekersClient
-
public class PopulationStatisticsAsylumSeekersClient extends AbstractClient
Client which handles population statistics asylum seekers data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsAsylumSeekersClient()Default constructor.PopulationStatisticsAsylumSeekersClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getAsylumSeekers()Fetch all asylum seekers data.List<ResponseModel>getAsylumSeekers(Collection<String> countriesOfCitizenships, Collection<Integer> sexes, Collection<Integer> years)Fetch all asylum seekers data which match the input constraints.List<ResponseModel>getUnaccompaniedRefugeeMinors()Fetch all unaccompanied refugee minors data.List<ResponseModel>getUnaccompaniedRefugeeMinors(Collection<String> sexes, Collection<String> ages, Collection<String> countriesOfCitizenships, Collection<Integer> years)Fetch all unaccompanied refugee minors 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
-
PopulationStatisticsAsylumSeekersClient
public PopulationStatisticsAsylumSeekersClient()
Default constructor.
-
PopulationStatisticsAsylumSeekersClient
public PopulationStatisticsAsylumSeekersClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getAsylumSeekers
public List<ResponseModel> getAsylumSeekers()
Fetch all asylum seekers data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getAsylumSeekers(Collection, Collection, Collection)
-
getAsylumSeekers
public List<ResponseModel> getAsylumSeekers(Collection<String> countriesOfCitizenships, Collection<Integer> sexes, Collection<Integer> years)
Fetch all asylum seekers data which match the input constraints.
- Parameters:
countriesOfCitizenships- the countries of citizenshipssexes- the sexesyears- the years to fetch data for- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getUnaccompaniedRefugeeMinors
public List<ResponseModel> getUnaccompaniedRefugeeMinors()
Fetch all unaccompanied refugee minors data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getUnaccompaniedRefugeeMinors(Collection, Collection, Collection, Collection)
-
getUnaccompaniedRefugeeMinors
public List<ResponseModel> getUnaccompaniedRefugeeMinors(Collection<String> sexes, Collection<String> ages, Collection<String> countriesOfCitizenships, Collection<Integer> years)
Fetch all unaccompanied refugee minors data which match the input constraints.
- Parameters:
sexes- the sexesages- the agescountriesOfCitizenships- the countries of citizenshipsyears- the years to fetch data for- 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
-
-