Class EnvironmentLandAndWaterAreaClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.environment.landandwaterarea.EnvironmentLandAndWaterAreaClient
-
public class EnvironmentLandAndWaterAreaClient extends AbstractClient
Client which handles environment land and water area data fetching.
- Since:
- 0.0.2
-
-
Constructor Summary
Constructors Constructor Description EnvironmentLandAndWaterAreaClient()Default constructor.EnvironmentLandAndWaterAreaClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getArea()Fetch all area data.List<ResponseModel>getArea(Collection<String> regions, Collection<String> types, Collection<Integer> years)Fetch all area 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
-
EnvironmentLandAndWaterAreaClient
public EnvironmentLandAndWaterAreaClient()
Default constructor.
-
EnvironmentLandAndWaterAreaClient
public EnvironmentLandAndWaterAreaClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getArea
public List<ResponseModel> getArea()
Fetch all area data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getArea(Collection, Collection, Collection)
-
getArea
public List<ResponseModel> getArea(Collection<String> regions, Collection<String> types, Collection<Integer> years)
Fetch all area data which match the input constraints.
- Parameters:
regions- the regions to fetch data fortypes- the types to fetch data foryears- 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
-
-