2 * Copyright (c) 2010-2023 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.livisismarthome.internal.client.api.entity;
15 import org.openhab.binding.livisismarthome.internal.client.api.entity.device.GatewayDTO;
18 * Defines the structure of the status response
20 * @author Oliver Kuhl - Initial contribution
22 public class StatusResponseDTO {
25 * The LIVISI SmartHome gateway. Can be null in case there is no registered for the current logged in user.
27 private GatewayDTO gateway;
30 * Version of the configuration. Changes each time the configuration was changed via the LIVISI client app.
32 private String configVersion;
35 * @return the configuration version
37 public String getConfigVersion() {
38 // SHC 2 returns a gateway element with the config version.
39 if (gateway != null) {
40 return gateway.getConfigVersion();
42 // SHC 1 (classic) has no gateway element, the configVersion is returned directly within the response object.