Class ItemHistoryDTO

java.lang.Object
org.openhab.core.persistence.dto.ItemHistoryDTO

public class ItemHistoryDTO extends Object
This is a java bean that is used to serialize items to JSON.
Author:
Chris Jackson - Initial contribution
  • Field Details

  • Constructor Details

    • ItemHistoryDTO

      public ItemHistoryDTO()
  • Method Details

    • addData

      public void addData(Long time, State state)
      Add a new record to the data history. This method returns a double value equal to the state. This may be used for comparison by the caller.
      Parameters:
      time - the time of the record
      state - the state at this time