]> git.basschouten.com Git - openhab-addons.git/blob
e0f9e5a2c07af739dff9b9ee8aace522c3ffab01
[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.fineoffsetweatherstation.internal.domain.response;
14
15 import java.time.LocalDateTime;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * Information about the gateway
22  *
23  * @author Andreas Berger - Initial contribution
24  */
25 @NonNullByDefault
26 public class SystemInfo {
27     /**
28      * in MHz
29      */
30     private final @Nullable Integer frequency;
31     private final LocalDateTime dateTime;
32     /**
33      * Daylight saving time
34      */
35     private final boolean dst;
36     private final boolean useWh24;
37
38     public SystemInfo(@Nullable Integer frequency, LocalDateTime dateTime, boolean dst, boolean useWh24) {
39         this.frequency = frequency;
40         this.dateTime = dateTime;
41         this.dst = dst;
42         this.useWh24 = useWh24;
43     }
44
45     public @Nullable Integer getFrequency() {
46         return frequency;
47     }
48
49     public LocalDateTime getDateTime() {
50         return dateTime;
51     }
52
53     public boolean isDst() {
54         return dst;
55     }
56
57     public boolean isUseWh24() {
58         return useWh24;
59     }
60
61     @Override
62     public String toString() {
63         return "SystemInfo{" + "frequency=" + frequency + " MHz" + ", dateTime=" + dateTime + ", dst=" + dst
64                 + ", useWh24=" + useWh24 + '}';
65     }
66 }