]> git.basschouten.com Git - openhab-addons.git/blob
aca4191196c624c538c05ee7c5be4a5b2ee69a20
[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.deserialization;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.netatmo.internal.api.data.EventType;
17 import org.openhab.binding.netatmo.internal.api.data.ModuleType;
18
19 /**
20  * This class holds data of push_type field
21  *
22  * @author GaĆ«l L'hopital - Initial contribution
23  */
24 @NonNullByDefault
25 public class NAPushType {
26     public static final NAPushType UNKNOWN = new NAPushType(ModuleType.UNKNOWN, EventType.UNKNOWN);
27
28     private final ModuleType moduleType;
29     private final EventType event;
30
31     NAPushType(ModuleType moduleType, EventType event) {
32         this.moduleType = moduleType;
33         this.event = event;
34     }
35
36     public ModuleType getModuleType() {
37         return moduleType;
38     }
39
40     public EventType getEvent() {
41         return event;
42     }
43 }