Class AgricultureLivestockClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.agriculture.livestock.AgricultureLivestockClient
-
public class AgricultureLivestockClient extends AbstractClient
Client which handles agriculture livestock data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description AgricultureLivestockClient()Default constructor.AgricultureLivestockClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getLivestockByCounty()Fetch all livestock by county data.List<ResponseModel>getLivestockByCounty(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)Fetch all livestock by county data which match the input constraints.List<ResponseModel>getLivestockByMunicipality()Fetch all livestock by municipality data.List<ResponseModel>getLivestockByMunicipality(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)Fetch all livestock by municipality 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
-
AgricultureLivestockClient
public AgricultureLivestockClient()
Default constructor.
-
AgricultureLivestockClient
public AgricultureLivestockClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getLivestockByMunicipality
public List<ResponseModel> getLivestockByMunicipality()
Fetch all livestock by municipality data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getLivestockByMunicipality(Collection, Collection, Collection)
-
getLivestockByMunicipality
public List<ResponseModel> getLivestockByMunicipality(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)
Fetch all livestock by municipality data which match the input constraints.
- Parameters:
regions- the regionstypesOfAnimals- the types of animalsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getLivestockByCounty
public List<ResponseModel> getLivestockByCounty()
Fetch all livestock by county data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getLivestockByCounty(Collection, Collection, Collection)
-
getLivestockByCounty
public List<ResponseModel> getLivestockByCounty(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)
Fetch all livestock by county data which match the input constraints.
- Parameters:
regions- the regionstypesOfAnimals- the types of animalsyears- 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
-
-