]> git.basschouten.com Git - openhab-addons.git/blob
a9cc0ad031a558e1a68d3751f2aad6752f3fe1bc
[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.netatmo.internal.api.dto;
14
15 import java.time.ZonedDateTime;
16 import java.util.List;
17 import java.util.Optional;
18
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.eclipse.jdt.annotation.Nullable;
21
22 /**
23  * The {@link HomeDataModule} holds module informations returned by getHomeData endpoint
24  *
25  * @author GaĆ«l L'hopital - Initial contribution
26  *
27  */
28
29 @NonNullByDefault
30 public class HomeDataModule extends NAThing implements NAModule {
31     private @Nullable ZonedDateTime setupDate;
32     private @Nullable String applianceType;
33     private List<String> moduleBridged = List.of();
34
35     public @Nullable String getApplianceType() {
36         return applianceType;
37     }
38
39     public Optional<ZonedDateTime> getSetupDate() {
40         return Optional.ofNullable(setupDate);
41     }
42
43     public List<String> getModuleBridged() {
44         return moduleBridged;
45     }
46
47     @Override
48     public boolean isIgnoredForThingUpdate() {
49         return true;
50     }
51 }