]> git.basschouten.com Git - openhab-addons.git/blob
278b685928211ce6d70cc4b7c1ae4f7056ce6983
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.amazonechocontrol.internal.jsons;
14
15 import java.util.Arrays;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20
21 /**
22  * The {@link JsonDevices} encapsulate the GSON data of device list
23  *
24  * @author Michael Geramb - Initial contribution
25  */
26 @NonNullByDefault
27 public class JsonDevices {
28
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;
39
40         @Override
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) + '}';
47         }
48     }
49
50     public List<Device> devices = List.of();
51 }