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 @Nullable String findEntityId() {
44 SmartHomeGroupIdentifier applianceGroupIdentifier = this.applianceGroupIdentifier;
45 if (applianceGroupIdentifier == null) {
48 String value = applianceGroupIdentifier.value;
56 public boolean isGroup() {
60 public @Nullable String applianceGroupName;
61 public @Nullable Boolean isSpace;
62 public @Nullable Boolean space;
63 public @Nullable SmartHomeGroupIdentifier applianceGroupIdentifier;
66 public String toString() {
67 return "SmartHomeGroup{" + "applianceGroupName='" + applianceGroupName + '\'' + ", isSpace=" + isSpace
68 + ", space=" + space + ", applianceGroupIdentifier=" + applianceGroupIdentifier + '}';
72 public @Nullable List<SmartHomeGroup> groups;