Class ApiResponseImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ApiResponseImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object deepCopy​(ApiResponseImpl impl)
      injects the values maintained by the ApiResponseImpl into the passed object that is being used for a deep copy.
      java.util.Optional<java.util.List<java.lang.Integer>> getSiteIds()
      Get the list of site IDs related to the data in the api response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ninja.codingsolutions.solaredgeapiclient.interfaces.DeepCopyable

        deepCopy
    • Constructor Detail

      • ApiResponseImpl

        public ApiResponseImpl()
    • Method Detail

      • getSiteIds

        public java.util.Optional<java.util.List<java.lang.Integer>> getSiteIds()
        Get the list of site IDs related to the data in the api response
        Specified by:
        getSiteIds in interface ApiResponse
        Returns:
        a Optional list of integers of the site ids related to the data in the api response, if the response data isn't related to any site id the optional will not have a value.
      • deepCopy

        public java.lang.Object deepCopy​(ApiResponseImpl impl)
        injects the values maintained by the ApiResponseImpl into the passed object that is being used for a deep copy.
        Parameters:
        impl - object that will be returned as a new deep copy of the object instance
        Returns:
        mutated instance of the passed @param impl updated with deep copies of the values present on the ApiResponseImpl instance