2 * Copyright (c) 2010-2022 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 java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.amazonechocontrol.internal.jsons.JsonSmartHomeGroupIdentifiers.SmartHomeGroupIdentifier;
22 * @author Lukas Knoeller - Initial contribution
25 public class JsonSmartHomeGroups {
27 public static class SmartHomeGroup implements SmartHomeBaseDevice {
30 public @Nullable String findId() {
31 SmartHomeGroupIdentifier applianceGroupIdentifier = this.applianceGroupIdentifier;
32 if (applianceGroupIdentifier == null) {
35 String value = applianceGroupIdentifier.value;
43 public boolean isGroup() {
47 public @Nullable String applianceGroupName;
48 public @Nullable Boolean isSpace;
49 public @Nullable Boolean space;
50 public @Nullable SmartHomeGroupIdentifier applianceGroupIdentifier;
53 public String toString() {
54 return "SmartHomeGroup{" + "applianceGroupName='" + applianceGroupName + '\'' + ", isSpace=" + isSpace
55 + ", space=" + space + ", applianceGroupIdentifier=" + applianceGroupIdentifier + '}';
59 public @Nullable List<SmartHomeGroup> groups;