public class AgricultureLivestockClient extends AbstractClient
Client which handles agriculture livestock data fetching.
Constructor and Description |
---|
AgricultureLivestockClient()
Default constructor.
|
AgricultureLivestockClient(Locale locale)
Overloaded constructor.
|
Modifier and Type | Method and 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.
|
URLEndpoint |
getUrl()
Returns the URL endpoint which this client represents.
|
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
public AgricultureLivestockClient()
Default constructor.
public AgricultureLivestockClient(Locale locale)
Overloaded constructor.
locale
- the Locale
for this clientpublic List<ResponseModel> getLivestockByMunicipality()
Fetch all livestock by municipality data.
ResponseModel
objectsgetLivestockByMunicipality(Collection, Collection, Collection)
public List<ResponseModel> getLivestockByMunicipality(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)
Fetch all livestock by municipality data which match the input constraints.
regions
- the regionstypesOfAnimals
- the types of animalsyears
- the yearsResponseModel
objectspublic List<ResponseModel> getLivestockByCounty()
Fetch all livestock by county data.
ResponseModel
objectsgetLivestockByCounty(Collection, Collection, Collection)
public List<ResponseModel> getLivestockByCounty(Collection<String> regions, Collection<String> typesOfAnimals, Collection<Integer> years)
Fetch all livestock by county data which match the input constraints.
regions
- the regionstypesOfAnimals
- the types of animalsyears
- the yearsResponseModel
objectspublic URLEndpoint getUrl()
AbstractClient
Returns the URL endpoint which this client represents.
getUrl
in class AbstractClient
Copyright © 2019. All rights reserved.