Package io.github.zeroone3010.yahueapi
Class NewLightsResult
java.lang.Object
io.github.zeroone3010.yahueapi.NewLightsResult
public final class NewLightsResult extends Object
-
Constructor Summary
Constructors Constructor Description NewLightsResult(Collection<Light> newLights, NewLightsSearchStatus status, ZonedDateTime lastSearchTime) -
Method Summary
Modifier and Type Method Description Optional<ZonedDateTime>getLastSearchTime()Time of the last finished search, orOptional.empty()if no search has been completed since the last time the Bridge was rebooted.Collection<Light>getNewLights()The lights that were found the last time new lights were searched for, if any.NewLightsSearchStatusgetStatus()Status of searching for new lights:ACTIVEif there is a search currently going on, [@code NONE} if no search has been performed since the Bridge was last rebooted, andCOMPLETEDif a search has been finished.StringtoString()
-
Constructor Details
-
NewLightsResult
public NewLightsResult(Collection<Light> newLights, NewLightsSearchStatus status, ZonedDateTime lastSearchTime)
-
-
Method Details
-
getNewLights
The lights that were found the last time new lights were searched for, if any.- Returns:
- A collection of lights found the last time new lights were searched for.
-
getStatus
Status of searching for new lights:ACTIVEif there is a search currently going on, [@code NONE} if no search has been performed since the Bridge was last rebooted, andCOMPLETEDif a search has been finished. In the case of aCOMPLETEDsearch, seegetLastSearchTime()for the time when the search was finished.- Returns:
- Status of searching for new lights.
-
getLastSearchTime
Time of the last finished search, orOptional.empty()if no search has been completed since the last time the Bridge was rebooted.- Returns:
- The time when the last search was finished, if one has been finished.
-
toString
-