]> git.basschouten.com Git - openhab-addons.git/blob
c8dbd7b04c8829840663e96bfed385085df1438b
[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.vesync.internal.dto.responses;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link VeSyncManagedDevicesPage} is a Java class used as a DTO to hold the Vesync's API's response data to a
19  * page of data requesting the manages devices.
20  *
21  * @author David Goodyear - Initial contribution
22  */
23 public class VeSyncManagedDevicesPage extends VeSyncResponse {
24
25     @SerializedName("result")
26     public Outcome outcome;
27
28     public class Outcome {
29         @SerializedName("pageNo")
30         public String pageNo;
31
32         @SerializedName("total")
33         public String total;
34
35         @SerializedName("pageSize")
36         public String pageSize;
37
38         @SerializedName("list")
39         public VeSyncManagedDeviceBase[] list;
40
41         public String getPageNo() {
42             return pageNo;
43         }
44
45         public String getPageSize() {
46             return pageSize;
47         }
48
49         public String getTotal() {
50             return total;
51         }
52     }
53 }