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.konnected.internal.gson;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link KonnectedModuleGson} is responsible to hold
19 * data that models pin information which can be sent to a Konnected Module
21 * @author Zachary Christiansen - Initial contribution
24 public class KonnectedModuleGson {
30 @SerializedName("Auth_Token")
31 private String authToken;
32 private String momentary;
35 @SerializedName("poll_interval")
36 private Integer pollInterval;
39 public Integer getPin() {
43 public void setPin(Integer setPin) {
47 public Integer getPollInterval() {
51 public void setPollInterval(Integer setPollInterval) {
52 this.pollInterval = setPollInterval;
55 public String getTemp() {
59 public void setTemp(String setTemp) {
63 public String getHumi() {
67 public void setHumi(String setHumi) {
71 public String getState() {
75 public void setState(String setState) {
76 this.state = setState;
79 public String getAuthToken() {
83 public String getMomentary() {
87 public void setMomentary(String setMomentary) {
88 this.momentary = setMomentary;
91 public String getPause() {
95 public void setPause(String setPause) {
96 this.pause = setPause;
99 public String getTimes() {
103 public void setTimes(String setTimes) {
104 this.times = setTimes;
107 public String getAddr() {
111 public void setAddr(String setAddr) {