]> git.basschouten.com Git - openhab-addons.git/blob
8f3fc795ac5561719c877174b711f8022866daa4
[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 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Represents rhythm module position
21  *
22  * @author Martin Raepple - Initial contribution
23  */
24 @NonNullByDefault
25 public class RhythmPos {
26
27     @SerializedName("x")
28     private float posX;
29     @SerializedName("y")
30     private float posY;
31     @SerializedName("o")
32     private float orientation;
33
34     public float getPosX() {
35         return posX;
36     }
37
38     public void setPosX(float x) {
39         this.posX = x;
40     }
41
42     public float getPosY() {
43         return posY;
44     }
45
46     public void setPosY(float y) {
47         this.posY = y;
48     }
49
50     public float getOrientation() {
51         return orientation;
52     }
53
54     public void setOrientation(float o) {
55         this.orientation = o;
56     }
57 }