2 * Copyright (c) 2010-2022 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.tellstick.internal.live.xml;
15 import org.openhab.binding.tellstick.internal.TellstickRuntimeException;
16 import org.tellstick.device.TellstickSensorEvent;
17 import org.tellstick.device.iface.TellstickEvent;
18 import org.tellstick.enums.DataType;
21 * This class is used for events for the telldus live sensors.
23 * @author Jarle Hjortland - Initial contribution
25 public class TellstickNetSensorEvent extends TellstickSensorEvent implements TellstickEvent {
27 private DataTypeValue dataType;
29 public TellstickNetSensorEvent(int sensorId, String data, DataTypeValue dataValue, String protocol, String model,
31 super(sensorId, data, null, protocol, model, timeStamp);
32 this.dataType = dataValue;
35 public DataTypeValue getDataTypeValue() {
40 public DataType getDataType() {
41 throw new TellstickRuntimeException("Should not call this method");