Class GoodsAndServicesFoodSalesClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.goodsandservices.foodsales.GoodsAndServicesFoodSalesClient
-
public class GoodsAndServicesFoodSalesClient extends AbstractClient
Client which handles goods and services food sales data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description GoodsAndServicesFoodSalesClient()
Default constructor.GoodsAndServicesFoodSalesClient(Locale locale)
Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>
getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks()
Fetch all turnover of ecological food and non alcoholic drinks data.List<ResponseModel>
getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks(Collection<String> productGroups, Collection<Integer> years)
Fetch all turnover of ecological food and non alcoholic drinks data which match the input constraints.List<ResponseModel>
getTurnoverOfFoodAndDrinks()
Fetch all turnover of food and drinks data.List<ResponseModel>
getTurnoverOfFoodAndDrinks(Collection<String> productGroups, Collection<Integer> years)
Fetch all turnover of food and drinks data which match the input constraints.URLEndpoint
getUrl()
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
-
GoodsAndServicesFoodSalesClient
public GoodsAndServicesFoodSalesClient()
Default constructor.
-
GoodsAndServicesFoodSalesClient
public GoodsAndServicesFoodSalesClient(Locale locale)
Overloaded constructor.
- Parameters:
locale
- theLocale
for this client
-
-
Method Detail
-
getTurnoverOfFoodAndDrinks
public List<ResponseModel> getTurnoverOfFoodAndDrinks()
Fetch all turnover of food and drinks data.
- Returns:
- the data wrapped in a list of
ResponseModel
objects - See Also:
getTurnoverOfFoodAndDrinks(Collection, Collection)
-
getTurnoverOfFoodAndDrinks
public List<ResponseModel> getTurnoverOfFoodAndDrinks(Collection<String> productGroups, Collection<Integer> years)
Fetch all turnover of food and drinks data which match the input constraints.
- Parameters:
productGroups
- the product groups to fetch data foryears
- the years to fetch data for- Returns:
- the data wrapped in a list of
ResponseModel
objects
-
getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks
public List<ResponseModel> getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks()
Fetch all turnover of ecological food and non alcoholic drinks data.
- Returns:
- the data wrapped in a list of
ResponseModel
objects - See Also:
getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks(Collection, Collection)
-
getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks
public List<ResponseModel> getTurnoverOfEcologicalFoodAndNonAlcoholicDrinks(Collection<String> productGroups, Collection<Integer> years)
Fetch all turnover of ecological food and non alcoholic drinks data which match the input constraints.
- Parameters:
productGroups
- the product groups to fetch data foryears
- the years to fetch data for- Returns:
- the data wrapped in a list of
ResponseModel
objects
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClient
Returns the URL endpoint which this client represents.
- Specified by:
getUrl
in classAbstractClient
- Returns:
- the URL endpoint for this client
-
-