Class PopulationStatisticsForeignCitizensClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.foreigncitizens.PopulationStatisticsForeignCitizensClient
-
public class PopulationStatisticsForeignCitizensClient extends AbstractClient
Client which handles population statistics foreign citizens data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsForeignCitizensClient()Default constructor.PopulationStatisticsForeignCitizensClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getForeignCitizens()Fetch all foreign citizens data.List<ResponseModel>getForeignCitizens(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)Fetch all foreign citizens 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
-
PopulationStatisticsForeignCitizensClient
public PopulationStatisticsForeignCitizensClient()
Default constructor.
-
PopulationStatisticsForeignCitizensClient
public PopulationStatisticsForeignCitizensClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getForeignCitizens
public List<ResponseModel> getForeignCitizens()
Fetch all foreign citizens data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getForeignCitizens(Collection, Collection, Collection, Collection)
-
getForeignCitizens
public List<ResponseModel> getForeignCitizens(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)
Fetch all foreign citizens data which match the input constraints.
- Parameters:
regions- the regionsages- the agessexes- the sexesyears- 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
-
-