Class SolarEdgeApiClientImpl
java.lang.Object
ninja.codingsolutions.solaredgeapiclient.SolarEdgeApiClientImpl
- All Implemented Interfaces:
SolarEdgeApiClient
public class SolarEdgeApiClientImpl extends java.lang.Object implements SolarEdgeApiClient
-
Constructor Summary
Constructors Constructor Description SolarEdgeApiClientImpl() -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<OverviewResponse>getOverviewResponse(int siteId)Fetch a high level summary/overview of the sitejava.util.concurrent.CompletableFuture<SiteDetailsResponse>getSiteDetails(int siteId)Fetch the site details from the APIMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SolarEdgeApiClientImpl
public SolarEdgeApiClientImpl()
-
-
Method Details
-
getSiteDetails
Description copied from interface:SolarEdgeApiClientFetch the site details from the API- Specified by:
getSiteDetailsin interfaceSolarEdgeApiClient- Parameters:
siteId- integer id of the site- Returns:
- future that resolve with the site details associated with the provided site id
-
getOverviewResponse
Fetch a high level summary/overview of the site- Specified by:
getOverviewResponsein interfaceSolarEdgeApiClient- Parameters:
siteId- integer id of the site- Returns:
- future that resolves with the overview response
-