]> git.basschouten.com Git - openhab-addons.git/blob
4c340d8ba23fa1b57912a77de7ea1bca5814f73c
[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.luftdateninfo.internal.dto;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link SensorData} Data Transfer Object
21  *
22  * @author Bernd Weymann - Initial contribution
23  */
24 public class SensorData {
25     private long id;
26     private String timestamp;
27     @SerializedName("sampling_rate")
28     private int samplingRate;
29     @SerializedName("sensordatavalues")
30     private List<SensorDataValue> sensorDataValues;
31     private Location location;
32     private Sensor sensor;
33
34     @Override
35     public String toString() {
36         return id + timestamp;
37     }
38
39     public long getId() {
40         return id;
41     }
42
43     public void setId(long id) {
44         this.id = id;
45     }
46
47     public String getTimeStamp() {
48         return timestamp;
49     }
50
51     public void setTimeStamp(String timeStamp) {
52         this.timestamp = timeStamp;
53     }
54
55     public int getSamplingRate() {
56         return samplingRate;
57     }
58
59     public void setSamplingRate(int samplingRate) {
60         this.samplingRate = samplingRate;
61     }
62
63     public List<SensorDataValue> getSensorDataValues() {
64         return sensorDataValues;
65     }
66
67     public void setSensorDataValues(List<SensorDataValue> sensorDataValues) {
68         this.sensorDataValues = sensorDataValues;
69     }
70
71     public Location getLocation() {
72         return location;
73     }
74
75     public void setLocation(Location location) {
76         this.location = location;
77     }
78
79     public Sensor getSensor() {
80         return sensor;
81     }
82
83     public void setSensor(Sensor sensor) {
84         this.sensor = sensor;
85     }
86 }