Class PricesAndConsumptionBPIClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.pricesandconsumption.bpi.PricesAndConsumptionBPIClient
-
public class PricesAndConsumptionBPIClient extends AbstractClient
Client which handles prices and consumption building price index (BPI) data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description PricesAndConsumptionBPIClient()Default constructor.PricesAndConsumptionBPIClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getBuildingPriceIndexForDwellingsQuarters()Fetch all building price index for dwellings (quarters) data.List<ResponseModel>getBuildingPriceIndexForDwellingsQuarters(Collection<String> typesOfBuildings, Collection<String> typesOfIndexes, Collection<String> quarters)Fetch all building price index for dwellings (quarters) data which match the input constraints.List<ResponseModel>getBuildingPriceIndexForDwellingsYears()Fetch all building price index for dwellings (years) data.List<ResponseModel>getBuildingPriceIndexForDwellingsYears(Collection<String> typesOfBuildings, Collection<String> typesOfIndexes, Collection<Integer> years)Fetch all building price index for dwellings (years) 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
-
PricesAndConsumptionBPIClient
public PricesAndConsumptionBPIClient()
Default constructor.
-
PricesAndConsumptionBPIClient
public PricesAndConsumptionBPIClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getBuildingPriceIndexForDwellingsQuarters
public List<ResponseModel> getBuildingPriceIndexForDwellingsQuarters()
Fetch all building price index for dwellings (quarters) data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getBuildingPriceIndexForDwellingsQuarters(Collection, Collection, Collection)
-
getBuildingPriceIndexForDwellingsQuarters
public List<ResponseModel> getBuildingPriceIndexForDwellingsQuarters(Collection<String> typesOfBuildings, Collection<String> typesOfIndexes, Collection<String> quarters)
Fetch all building price index for dwellings (quarters) data which match the input constraints.
- Parameters:
typesOfBuildings- the types of buildingstypesOfIndexes- the types of indexesquarters- the quarters- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getBuildingPriceIndexForDwellingsYears
public List<ResponseModel> getBuildingPriceIndexForDwellingsYears()
Fetch all building price index for dwellings (years) data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getBuildingPriceIndexForDwellingsYears(Collection, Collection, Collection)
-
getBuildingPriceIndexForDwellingsYears
public List<ResponseModel> getBuildingPriceIndexForDwellingsYears(Collection<String> typesOfBuildings, Collection<String> typesOfIndexes, Collection<Integer> years)
Fetch all building price index for dwellings (years) data which match the input constraints.
- Parameters:
typesOfBuildings- the types of buildingstypesOfIndexes- the types of indexesyears- 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
-
-