2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.nest.internal.wwn.listener;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Used to track incoming data for WWN things.
20 * @author Wouter Born - Initial contribution
23 public interface WWNThingDataListener<T> {
26 * An initial value for the data was received or the value is send again due to a refresh.
28 * @param data the data
30 void onNewData(T data);
33 * Existing data was updated to a new value.
35 * @param oldData the previous value
36 * @param data the current value
38 void onUpdatedData(T oldData, T data);
41 * A Nest thing which previously had data is missing. E.g. it was removed from the account.
43 * @param nestId identifies the Nest thing
45 void onMissingData(String nestId);