]> git.basschouten.com Git - openhab-addons.git/blob
f4c9d784a5aa8a3ba2be685c39fb41b512917a47
[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.api.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         CALIBRATE("calibrate");
28
29         private String motion;
30
31         Type(String motion) {
32             this.motion = motion;
33         }
34
35         public String getMotion() {
36             return this.motion;
37         }
38     }
39
40     public String motion;
41
42     public ShadeMotion(Type motionType) {
43         this.motion = motionType.getMotion();
44     }
45 }