]> git.basschouten.com Git - openhab-addons.git/blob
f803438abd56a5aa034a7e8d5bf4ad909dfd0035
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.miio.internal.cloud;
14
15 import java.util.Collections;
16 import java.util.List;
17
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * This DTO class wraps the device list info json structure
23  *
24  * @author Marcel Verpaalen - Initial contribution
25  */
26 public class CloudDeviceListDTO {
27
28     @SerializedName("list")
29     @Expose
30     private List<CloudDeviceDTO> cloudDevices = null;
31
32     public List<CloudDeviceDTO> getCloudDevices() {
33         if (cloudDevices == null) {
34             return Collections.emptyList();
35         }
36         return cloudDevices;
37     }
38 }