]> git.basschouten.com Git - openhab-addons.git/blob
9e3550b605e9bd289dc83dbf58253b098dabef03
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.mqtt.homeassistant.internal.config.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * MQTT topic subscribed to receive availability (online/offline) updates. Must not be used together with
19  * availability_topic
20  *
21  * @author Anton Kharuzhy - Initial contribution
22  */
23 public class Availability {
24     @SerializedName("payload_available")
25     protected String payloadAvailable = "online";
26     @SerializedName("payload_not_available")
27     protected String payloadNotAvailable = "offline";
28     protected String topic;
29
30     public String getPayloadAvailable() {
31         return payloadAvailable;
32     }
33
34     public String getPayloadNotAvailable() {
35         return payloadNotAvailable;
36     }
37
38     public String getTopic() {
39         return topic;
40     }
41 }