Class PublicFinancesAssetsAndLiabilitiesClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.publicfinances.assetsandliabilities.PublicFinancesAssetsAndLiabilitiesClient
-
public class PublicFinancesAssetsAndLiabilitiesClient extends AbstractClient
Client which handles public finances assets and liabilities data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PublicFinancesAssetsAndLiabilitiesClient()Default constructor.PublicFinancesAssetsAndLiabilitiesClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getAssetsAndLiabilities()Fetch all assets and liabilities data.List<ResponseModel>getAssetsAndLiabilities(Collection<Integer> items, Collection<Integer> sectors, Collection<String> quarters)Fetch all assets and liabilities 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
-
PublicFinancesAssetsAndLiabilitiesClient
public PublicFinancesAssetsAndLiabilitiesClient()
Default constructor.
-
PublicFinancesAssetsAndLiabilitiesClient
public PublicFinancesAssetsAndLiabilitiesClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getAssetsAndLiabilities
public List<ResponseModel> getAssetsAndLiabilities()
Fetch all assets and liabilities data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getAssetsAndLiabilities(Collection, Collection, Collection)
-
getAssetsAndLiabilities
public List<ResponseModel> getAssetsAndLiabilities(Collection<Integer> items, Collection<Integer> sectors, Collection<String> quarters)
Fetch all assets and liabilities data which match the input constraints.
- Parameters:
items- the itemssectors- the sectorsquarters- the quarters- 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
-
-