2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.fineoffsetweatherstation.internal.domain.response;
15 import java.time.LocalDateTime;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * Information about the gateway
23 * @author Andreas Berger - Initial contribution
26 public class SystemInfo {
30 private final @Nullable Integer frequency;
31 private final LocalDateTime dateTime;
33 * Daylight saving time
35 private final boolean dst;
36 private final boolean useWh24;
38 public SystemInfo(@Nullable Integer frequency, LocalDateTime dateTime, boolean dst, boolean useWh24) {
39 this.frequency = frequency;
40 this.dateTime = dateTime;
42 this.useWh24 = useWh24;
45 public @Nullable Integer getFrequency() {
49 public LocalDateTime getDateTime() {
53 public boolean isDst() {
57 public boolean isUseWh24() {
62 public String toString() {
63 return "SystemInfo{" + "frequency=" + frequency + " MHz" + ", dateTime=" + dateTime + ", dst=" + dst
64 + ", useWh24=" + useWh24 + '}';