]> git.basschouten.com Git - openhab-addons.git/blob
f5aeb57a53a8da3fe526a0dc2237e233e5deeaae
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.hdpowerview.internal.dto.requests;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * A motion directive for a shade
19  *
20  * @author Jacob Laursen - Initial contribution
21  */
22 @NonNullByDefault
23 class ShadeMotion {
24
25     public enum Type {
26         STOP("stop"),
27         JOG("jog"),
28         CALIBRATE("calibrate");
29
30         private String motion;
31
32         Type(String motion) {
33             this.motion = motion;
34         }
35
36         public String getMotion() {
37             return this.motion;
38         }
39     }
40
41     public String motion;
42
43     public ShadeMotion(Type motionType) {
44         this.motion = motionType.getMotion();
45     }
46 }