]> git.basschouten.com Git - openhab-addons.git/blob
cf50101b77792432284fac9aa54a67c20619d038
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.sensorcommunity.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link SensorDataValue} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  */
22 public class SensorDataValue {
23     private long id;
24     @SerializedName("value_type")
25     private String valueType;
26     private String value;
27
28     @Override
29     public String toString() {
30         return valueType + ":" + value;
31     }
32
33     public long getId() {
34         return id;
35     }
36
37     public void setId(long id) {
38         this.id = id;
39     }
40
41     public String getValueType() {
42         return valueType;
43     }
44
45     public void setValueType(String valueType) {
46         this.valueType = valueType;
47     }
48
49     public String getValue() {
50         return value;
51     }
52
53     public void setValue(String value) {
54         this.value = value;
55     }
56 }