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 site
    java.util.concurrent.CompletableFuture<SiteDetailsResponse> getSiteDetails​(int siteId)
    Fetch the site details from the API

    Methods 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

      public java.util.concurrent.CompletableFuture<SiteDetailsResponse> getSiteDetails​(int siteId)
      Description copied from interface: SolarEdgeApiClient
      Fetch the site details from the API
      Specified by:
      getSiteDetails in interface SolarEdgeApiClient
      Parameters:
      siteId - integer id of the site
      Returns:
      future that resolve with the site details associated with the provided site id
    • getOverviewResponse

      public java.util.concurrent.CompletableFuture<OverviewResponse> getOverviewResponse​(int siteId)
      Fetch a high level summary/overview of the site
      Specified by:
      getOverviewResponse in interface SolarEdgeApiClient
      Parameters:
      siteId - integer id of the site
      Returns:
      future that resolves with the overview response