Class LivingConditionsFamiliesAdoptionsClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.livingconditions.families.adoptions.LivingConditionsFamiliesAdoptionsClient
-
public class LivingConditionsFamiliesAdoptionsClient extends AbstractClient
Client which handles living conditions families adoptions data fetching.
- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description LivingConditionsFamiliesAdoptionsClient()Default constructor.LivingConditionsFamiliesAdoptionsClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getAllAdoptedChildrenAndYoungPersons()Fetch all adopted children and young persons aged 0-21 data.List<ResponseModel>getAllAdoptedChildrenAndYoungPersons(Collection<String> sexes, Collection<String> ages, Collection<String> countriesOfBirths, Collection<Integer> years)Fetch all adopted children and young persons aged 0-21 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
-
LivingConditionsFamiliesAdoptionsClient
public LivingConditionsFamiliesAdoptionsClient()
Default constructor.
-
LivingConditionsFamiliesAdoptionsClient
public LivingConditionsFamiliesAdoptionsClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getAllAdoptedChildrenAndYoungPersons
public List<ResponseModel> getAllAdoptedChildrenAndYoungPersons()
Fetch all adopted children and young persons aged 0-21 data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getAllAdoptedChildrenAndYoungPersons(Collection, Collection, Collection, Collection)
-
getAllAdoptedChildrenAndYoungPersons
public List<ResponseModel> getAllAdoptedChildrenAndYoungPersons(Collection<String> sexes, Collection<String> ages, Collection<String> countriesOfBirths, Collection<Integer> years)
Fetch all adopted children and young persons aged 0-21 data which match the input constraints.
- Parameters:
sexes- the sexesages- the agescountriesOfBirths- the countries 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
-
-