Class NewLightsResult

java.lang.Object
io.github.zeroone3010.yahueapi.NewLightsResult

public final class NewLightsResult
extends Object
  • Constructor Details

  • Method Details

    • getNewLights

      public Collection<Light> 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

      public NewLightsSearchStatus getStatus()
      Status of searching for new lights: ACTIVE if there is a search currently going on, [@code NONE} if no search has been performed since the Bridge was last rebooted, and COMPLETED if a search has been finished. In the case of a COMPLETED search, see getLastSearchTime() for the time when the search was finished.
      Returns:
      Status of searching for new lights.
    • getLastSearchTime

      public Optional<ZonedDateTime> getLastSearchTime()
      Time of the last finished search, or Optional.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

      public String toString()
      Overrides:
      toString in class Object