Class ApiResponseImpl
- java.lang.Object
-
- ninja.codingsolutions.solaredgeapiclient.models.impl.ApiResponseImpl
-
- All Implemented Interfaces:
DeepCopyable,ApiResponse,BaseModel
- Direct Known Subclasses:
DetailedEnergyResponseImpl,EnvironmentalBenefitsResponseImpl,OverviewResponseImpl,SiteDetailsResponseImpl,SupportedVersionsResponseImpl,VersionResponseImpl
public abstract class ApiResponseImpl extends java.lang.Object implements ApiResponse, BaseModel
Base response class that provides common functionality and/or properties that are shared by most api response from the solar edge api
-
-
Constructor Summary
Constructors Constructor Description ApiResponseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectdeepCopy(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.models.ApiResponse
setSiteIds
-
Methods inherited from interface ninja.codingsolutions.solaredgeapiclient.interfaces.DeepCopyable
deepCopy
-
-
-
-
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:
getSiteIdsin interfaceApiResponse- 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
-
-