2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.gardena.internal.model.command;
15 import com.google.gson.annotations.SerializedName;
18 * Common command to set a device setting.
20 * @author Gerhard Riegler - Initial contribution
22 public class SettingCommand extends Command {
24 @SerializedName("device")
25 private String deviceId;
27 public SettingCommand(String name) {
32 * Returns the value of the setting command.
34 public Object getValue() {
39 * Sets the value of the setting command.
41 public void setValue(Object value) {
46 * Returns the device id of the setting command.
48 public String getDeviceId() {
53 * Sets the device id of the setting command.
55 public void setDeviceId(String deviceId) {
56 this.deviceId = deviceId;