Class PopulationNameRegisteredPersonsClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.name.registeredpersons.PopulationNameRegisteredPersonsClient
-
public class PopulationNameRegisteredPersonsClient extends AbstractClient
Client which handles population name registered persons data fetching.
- Since:
- 0.5.0
-
-
Constructor Summary
Constructors Constructor Description PopulationNameRegisteredPersonsClient()Default constructor.PopulationNameRegisteredPersonsClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getFirstNamesNormallyUsed()Fetch all first names normally used data.List<ResponseModel>getFirstNamesNormallyUsed(Collection<String> firstnames, Collection<Integer> years)Fetch all first names normally used 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
-
PopulationNameRegisteredPersonsClient
public PopulationNameRegisteredPersonsClient()
Default constructor.
-
PopulationNameRegisteredPersonsClient
public PopulationNameRegisteredPersonsClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getFirstNamesNormallyUsed
public List<ResponseModel> getFirstNamesNormallyUsed()
Fetch all first names normally used data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getFirstNamesNormallyUsed(Collection, Collection)
-
getFirstNamesNormallyUsed
public List<ResponseModel> getFirstNamesNormallyUsed(Collection<String> firstnames, Collection<Integer> years)
Fetch all first names normally used data which match the input constraints.
- Parameters:
firstnames- the firstnamesyears- 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
-
-