]> git.basschouten.com Git - openhab-addons.git/blob
6e109ff4fb8d5537055e153ab35a765c3d09f596
[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.solarwatt.internal.domain.dto;
14
15 import java.util.ArrayList;
16 import java.util.Collection;
17
18 /**
19  * DTO class for the complete structure delivered by the energy manager.
20  *
21  * Properties without setters are only filled by gson JSON parsing.
22  *
23  * @author Sven Carstens - Initial contribution
24  */
25 public class EnergyManagerDTO {
26     private Result result;
27
28     public Collection<DeviceDTO> getItems() {
29         return this.result.getItems();
30     }
31
32     public static class Result {
33         public Collection<DeviceDTO> getItems() {
34             return this.items;
35         }
36
37         private Collection<DeviceDTO> items = new ArrayList<>();
38     }
39 }