Class AgricultureCerealCropsClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.agriculture.cerealcrops.AgricultureCerealCropsClient
-
public class AgricultureCerealCropsClient extends AbstractClient
Client which handles agriculture cereal crops data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description AgricultureCerealCropsClient()Default constructor.AgricultureCerealCropsClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLEndpointgetUrl()Returns the URL endpoint which this client represents.List<ResponseModel>getYieldPerHectarAndTotalProduction()Fetch all yield per hectar and total production data.List<ResponseModel>getYieldPerHectarAndTotalProduction(Collection<String> regions, Collection<Integer> crops, Collection<Integer> years)Fetch all yield per hectar and total production data which match the input constraints.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
-
-
-
-
Constructor Detail
-
AgricultureCerealCropsClient
public AgricultureCerealCropsClient()
Default constructor.
-
AgricultureCerealCropsClient
public AgricultureCerealCropsClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getYieldPerHectarAndTotalProduction
public List<ResponseModel> getYieldPerHectarAndTotalProduction()
Fetch all yield per hectar and total production data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getYieldPerHectarAndTotalProduction(Collection, Collection, Collection)
-
getYieldPerHectarAndTotalProduction
public List<ResponseModel> getYieldPerHectarAndTotalProduction(Collection<String> regions, Collection<Integer> crops, Collection<Integer> years)
Fetch all yield per hectar and total production data which match the input constraints.
- Parameters:
regions- the regionscrops- the cropsyears- 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
-
-