]> git.basschouten.com Git - openhab-addons.git/blob
7de424bd943ed403f2ad8977a396ffce9e2bb689
[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.boschindego.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.boschindego.internal.dto.request.SetStateRequest;
17
18 /**
19  * Commands supported by the device.
20  * 
21  * @author Jacob Laursen - Initial contribution
22  */
23 @NonNullByDefault
24 public enum DeviceCommand {
25
26     MOW(SetStateRequest.STATE_MOW),
27     PAUSE(SetStateRequest.STATE_PAUSE),
28     RETURN(SetStateRequest.STATE_RETURN);
29
30     private String actionCode;
31
32     DeviceCommand(String actionCode) {
33         this.actionCode = actionCode;
34     }
35
36     public String getActionCode() {
37         return actionCode;
38     }
39 }