]> git.basschouten.com Git - openhab-addons.git/blob
c98913e60fa3caae29aa9c0fbb588d64a1e97c67
[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.solaredge.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * this class is used to map the live data json response
20  *
21  * @author Alexander Friese - initial contribution
22  */
23 @NonNullByDefault
24 public class LiveDataResponseMeterless {
25     public static class Power {
26         public @Nullable Double power;
27     }
28
29     public static class Energy {
30         public @Nullable Double energy;
31     }
32
33     public static class Overview {
34         public @Nullable Power currentPower;
35         public @Nullable Energy lastDayData;
36         public @Nullable Energy lastMonthData;
37         public @Nullable Energy lastYearData;
38     }
39
40     @Nullable
41     private Overview overview;
42
43     public final @Nullable Overview getOverview() {
44         return overview;
45     }
46
47     public final void setOverview(Overview overview) {
48         this.overview = overview;
49     }
50 }