]> git.basschouten.com Git - openhab-addons.git/blob
0fdad14950c03503c66178db4233fad774d959bd
[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.windcentrale.internal.dto;
14
15 import java.time.ZonedDateTime;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The live {@link WindmillStatus} provided by the Windcentrale API.
21  *
22  * @author Wouter Born - Initial contribution
23  */
24 @NonNullByDefault
25 public class WindmillStatus {
26
27     public int power;
28
29     public int powerPerShare;
30
31     public int powerPercentage;
32
33     public ZonedDateTime timestamp = ZonedDateTime.now();
34
35     public int totalRuntime;
36
37     public String windDirection = "";
38
39     public int windPower;
40
41     public int yearProduction;
42
43     public double yearRuntime;
44
45     @Override
46     public String toString() {
47         return "WindmillStatus [power=" + power + ", powerPerShare=" + powerPerShare + ", powerPercentage="
48                 + powerPercentage + ", timestamp=" + timestamp + ", totalRuntime=" + totalRuntime + ", windDirection="
49                 + windDirection + ", windPower=" + windPower + ", yearProduction=" + yearProduction + ", yearRuntime="
50                 + yearRuntime + "]";
51     }
52 }