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.amazonechocontrol.internal.jsons;
15 import java.util.Arrays;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
22 * The {@link JsonDevices} encapsulate the GSON data of device list
24 * @author Michael Geramb - Initial contribution
27 public class JsonDevices {
29 public static class Device {
30 public @Nullable String accountName;
31 public @Nullable String serialNumber;
32 public @Nullable String deviceOwnerCustomerId;
33 public @Nullable String deviceAccountId;
34 public @Nullable String deviceFamily;
35 public @Nullable String deviceType;
36 public @Nullable String softwareVersion;
37 public boolean online;
38 public @Nullable String @Nullable [] capabilities;
41 public String toString() {
42 return "Device{" + "accountName='" + accountName + '\'' + ", serialNumber='" + serialNumber + '\''
43 + ", deviceOwnerCustomerId='" + deviceOwnerCustomerId + '\'' + ", deviceAccountId='"
44 + deviceAccountId + '\'' + ", deviceFamily='" + deviceFamily + '\'' + ", deviceType='" + deviceType
45 + '\'' + ", softwareVersion='" + softwareVersion + '\'' + ", online=" + online + ", capabilities="
46 + Arrays.toString(capabilities) + '}';
50 public List<Device> devices = List.of();