]> git.basschouten.com Git - openhab-addons.git/blob
5602d67e8e485619e1c1bbe8f34b67f7355b2f0c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.command;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Common command to set a device setting.
19  *
20  * @author Gerhard Riegler - Initial contribution
21  */
22 public class SettingCommand extends Command {
23     private Object value;
24     @SerializedName("device")
25     private String deviceId;
26
27     public SettingCommand(String name) {
28         super(name);
29     }
30
31     /**
32      * Returns the value of the setting command.
33      */
34     public Object getValue() {
35         return value;
36     }
37
38     /**
39      * Sets the value of the setting command.
40      */
41     public void setValue(Object value) {
42         this.value = value;
43     }
44
45     /**
46      * Returns the device id of the setting command.
47      */
48     public String getDeviceId() {
49         return deviceId;
50     }
51
52     /**
53      * Sets the device id of the setting command.
54      */
55     public void setDeviceId(String deviceId) {
56         this.deviceId = deviceId;
57     }
58 }