]> git.basschouten.com Git - openhab-addons.git/blob
1a02784e9aefa406fb7ac2cfb28c490b05734266
[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.nanoleaf.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Nanoleaf Panel TouchEvent provided by controller
19  *
20  *
21  * JSON
22  * {"events":
23  * [
24  * { "panelId":48111,
25  * "gesture":0},
26  * { "panelId":48112,
27  * * "gesture":1}
28  * ]
29  * }
30  *
31  *
32  * @author Stefan Höhn - Initial contribution
33  */
34 @NonNullByDefault
35 public class TouchEvent {
36
37     private String panelId = "";
38     private int gesture = -1;
39
40     public String getPanelId() {
41         return panelId;
42     }
43
44     public void setPanelId(String panelId) {
45         this.panelId = panelId;
46     }
47
48     public int getGesture() {
49         return gesture;
50     }
51
52     public void setGesture(int gesture) {
53         this.gesture = gesture;
54     }
55 }