]> git.basschouten.com Git - openhab-addons.git/blob
68f596da828ebd32d0f5c038d319422532411ca5
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.senechome.internal.json;
14
15 import java.io.Serializable;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Json model of senec home devices rebuilt by analyzing the api.
21  *
22  * @author Steven Schwarznau - Initial Contribution
23  */
24 public class SenecHomeResponse implements Serializable {
25
26     private static final long serialVersionUID = 5302080655053778494L;
27
28     public @SerializedName("PV1") SenecHomeLimitation limitation = new SenecHomeLimitation();
29     public @SerializedName("ENERGY") SenecHomeEnergy energy = new SenecHomeEnergy();
30     public @SerializedName("PM1OBJ1") SenecHomeGrid grid = new SenecHomeGrid();
31     public @SerializedName("STATISTIC") SenecHomeStatistics statistics = new SenecHomeStatistics();
32
33     @Override
34     public String toString() {
35         return "SenecHomeResponse [limitation=" + limitation + ", energy=" + energy + ", grid=" + grid + ", statistics="
36                 + statistics + "]";
37     }
38 }