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.fineoffsetweatherstation.internal.domain.response;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.fineoffsetweatherstation.internal.domain.MeasureType;
18 import org.openhab.core.thing.type.ChannelTypeUID;
19 import org.openhab.core.types.State;
22 * A certain measured value.
24 * @author Andreas Berger - Initial contribution
27 public class MeasuredValue {
28 private final MeasureType measureType;
29 private final String channelId;
30 private final @Nullable ChannelTypeUID channelTypeUID;
31 private final State state;
32 private final String debugName;
34 public MeasuredValue(MeasureType measureType, String channelId, @Nullable ChannelTypeUID channelTypeUID,
35 State state, String debugName) {
36 this.measureType = measureType;
37 this.channelId = channelId;
38 this.channelTypeUID = channelTypeUID;
40 this.debugName = debugName;
43 public MeasureType getMeasureType() {
47 public String getChannelId() {
51 public @Nullable ChannelTypeUID getChannelTypeUID() {
52 return channelTypeUID;
55 public State getState() {
59 public String getDebugName() {
64 public String toString() {
65 return "MeasuredValue{" + "measureType=" + measureType + ", channelId='" + channelId + '\''
66 + ", channelTypeUID=" + channelTypeUID + ", state=" + state + ", debugName='" + debugName + '\'' + '}';