]> git.basschouten.com Git - openhab-addons.git/blob
0d498c8776e7437c2b25068222b58a03779f8a71
[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.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.netatmo.internal.api.data.ModuleType;
19
20 /**
21  * The {@link Home} holds home information.
22  *
23  * @author GaĆ«l L'hopital - Initial contribution
24  *
25  */
26
27 @NonNullByDefault
28 public class Home extends Device implements Location {
29     private double[] coordinates = {};
30     private double altitude;
31     private List<HomeEvent> events = List.of();
32
33     @Override
34     public ModuleType getType() {
35         return ModuleType.HOME;
36     }
37
38     @Override
39     public double getAltitude() {
40         return altitude;
41     }
42
43     @Override
44     public double[] getCoordinates() {
45         return coordinates;
46     }
47
48     public List<HomeEvent> getEvents() {
49         return events;
50     }
51 }