]> git.basschouten.com Git - openhab-addons.git/blob
fe96f6a584536fb6a1461f6edf304503ca42b2cc
[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 Sensor} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  */
22 public class Sensor {
23     private int id;
24     private String pin;
25     @SerializedName("sensor_type")
26     private SensorType sensorType;
27
28     public int getId() {
29         return id;
30     }
31
32     public void setId(int id) {
33         this.id = id;
34     }
35
36     public String getPin() {
37         return pin;
38     }
39
40     public void setPin(String pin) {
41         this.pin = pin;
42     }
43
44     public SensorType getSensoTypee() {
45         return sensorType;
46     }
47
48     public void setSensorType(SensorType sensorType) {
49         this.sensorType = sensorType;
50     }
51 }