2 * Copyright (c) 2010-2020 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.amazonechocontrol.internal.jsons;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.amazonechocontrol.internal.jsons.JsonSmartHomeGroupIdentifiers.SmartHomeGroupIdentifier;
20 * @author Lukas Knoeller - Initial contribution
23 public class JsonSmartHomeGroups {
25 public static class SmartHomeGroup implements SmartHomeBaseDevice {
28 public @Nullable String findId() {
29 SmartHomeGroupIdentifier applianceGroupIdentifier = this.applianceGroupIdentifier;
30 if (applianceGroupIdentifier == null) {
33 String value = applianceGroupIdentifier.value;
41 public boolean isGroup() {
45 public @Nullable String applianceGroupName;
46 public @Nullable Boolean isSpace;
47 public @Nullable Boolean space;
48 public @Nullable SmartHomeGroupIdentifier applianceGroupIdentifier;
51 public String toString() {
52 return "SmartHomeGroup{" + "applianceGroupName='" + applianceGroupName + '\'' + ", isSpace=" + isSpace
53 + ", space=" + space + ", applianceGroupIdentifier=" + applianceGroupIdentifier + '}';
57 public @Nullable SmartHomeGroup @Nullable [] groups;