2 * Copyright (c) 2010-2023 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.solaredge.internal.model;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * this class is used to map the aggregate data response of the public API
23 * @author Alexander Friese - initial contribution
26 public class AggregateDataResponsePublicApi {
28 public static class MeterTelemetry {
29 public @Nullable String date;
30 public @Nullable Double value;
33 public static class MeterTelemetries {
34 public @Nullable String type;
35 public @Nullable List<MeterTelemetry> values;
38 public static class EnergyDetails {
39 public @Nullable AggregatePeriod timeUnit;
40 public @Nullable String unit;
41 public @Nullable List<MeterTelemetries> meters;
44 private @Nullable EnergyDetails energyDetails;
46 public @Nullable EnergyDetails getEnergyDetails() {
50 public void setEnergyDetails(EnergyDetails energyDetails) {
51 this.energyDetails = energyDetails;