]> git.basschouten.com Git - openhab-addons.git/blob
ba4be867337e0e8ab9c333e256f0584c343ba19b
[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 /**
16  * MQTT topic subscribed to receive availability (online/offline) updates. Must not be used together with
17  * availability_topic
18  *
19  * @author Anton Kharuzhy - Initial contribution
20  */
21 public class Availability {
22     protected String payload_available = "online";
23     protected String payload_not_available = "offline";
24     protected String topic;
25
26     public String getPayload_available() {
27         return payload_available;
28     }
29
30     public String getPayload_not_available() {
31         return payload_not_available;
32     }
33
34     public String getTopic() {
35         return topic;
36     }
37 }