]> git.basschouten.com Git - openhab-addons.git/blob
ccba89a7ed2d2857eacf70252fe4883ceb723a21
[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.gardena.internal.model.dto.command;
14
15 /**
16  * Represents a Gardena command object that is sent to the Gardena API.
17  *
18  * @author Gerhard Riegler - Initial contribution
19  */
20 public class ValveSetCommand extends GardenaCommand {
21     private static final String COMMAND_TYPE = "VALVE_SET_CONTROL";
22
23     public enum ValveSetControl {
24         STOP_UNTIL_NEXT_TASK
25     }
26
27     public ValveSetCommand(ValveSetControl valveSetControl) {
28         this.id = "vscid";
29         this.type = COMMAND_TYPE;
30         this.attributes = new GardenaCommandAttributes(valveSetControl.name(), null);
31     }
32 }