Class EnvironmentPackagingAndPackagingWasteClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.environment.packagingandpackagingwaste.EnvironmentPackagingAndPackagingWasteClient
-
public class EnvironmentPackagingAndPackagingWasteClient extends AbstractClient
Client which handles environment packaging and packaging waste data fetching.
- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description EnvironmentPackagingAndPackagingWasteClient()Default constructor.EnvironmentPackagingAndPackagingWasteClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getPackagingAndPackagingWaste()Fetch all packaging and packaging waste data.List<ResponseModel>getPackagingAndPackagingWaste(Collection<Integer> packagingTypes, Collection<Integer> years)Fetch all packaging and packaging waste 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
-
EnvironmentPackagingAndPackagingWasteClient
public EnvironmentPackagingAndPackagingWasteClient()
Default constructor.
-
EnvironmentPackagingAndPackagingWasteClient
public EnvironmentPackagingAndPackagingWasteClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getPackagingAndPackagingWaste
public List<ResponseModel> getPackagingAndPackagingWaste()
Fetch all packaging and packaging waste data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getPackagingAndPackagingWaste(Collection, Collection)
-
getPackagingAndPackagingWaste
public List<ResponseModel> getPackagingAndPackagingWaste(Collection<Integer> packagingTypes, Collection<Integer> years)
Fetch all packaging and packaging waste data which match the input constraints.
- Parameters:
packagingTypes- the packaging types to fetch data foryears- the years to fetch data for- 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
-
-