2 * Copyright (c) 2010-2021 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.mqtt.homeassistant.internal.config.dto;
15 import com.google.gson.annotations.SerializedName;
18 * MQTT topic subscribed to receive availability (online/offline) updates. Must not be used together with
21 * @author Anton Kharuzhy - Initial contribution
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;
30 public String getPayloadAvailable() {
31 return payloadAvailable;
34 public String getPayloadNotAvailable() {
35 return payloadNotAvailable;
38 public String getTopic() {