]> git.basschouten.com Git - openhab-addons.git/blob
22132c88aabbbba527ecc580bcb053498e3e18ec
[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.semsportal.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * POJO for mapping the portal data response to the {@link StatusRequest} and the {@link StationListRequest}
19  *
20  * @author Iwan Bron - Initial contribution
21  *
22  */
23 public class Station {
24     @SerializedName("powerstation_id")
25     private String stationId;
26     @SerializedName("stationname")
27     private String name;
28     @SerializedName("sn")
29     private String serialNumber;
30     private String type;
31     private Double capacity;
32     private int status;
33     @SerializedName("out_pac")
34     private Double currentPower;
35     @SerializedName("eday")
36     private Double dayTotal;
37     @SerializedName("emonth")
38     private Double monthTotal;
39     @SerializedName("etotal")
40     private Double overallTotal;
41     @SerializedName("d")
42     private InverterDetails details;
43
44     public String getStationId() {
45         return stationId;
46     }
47
48     public String getName() {
49         return name;
50     }
51
52     public String getSerialNumber() {
53         return serialNumber;
54     }
55
56     public String getType() {
57         return type;
58     }
59
60     public Double getCapacity() {
61         return capacity;
62     }
63
64     public int getStatus() {
65         return status;
66     }
67
68     public Double getCurrentPower() {
69         return currentPower;
70     }
71
72     public Double getDayTotal() {
73         return dayTotal;
74     }
75
76     public Double getMonthTotal() {
77         return monthTotal;
78     }
79
80     public Double getOverallTotal() {
81         return overallTotal;
82     }
83
84     public InverterDetails getDetails() {
85         return details;
86     }
87 }