2 * Copyright (c) 2010-2023 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.boschshc.internal.devices.bridge.dto;
15 import org.openhab.binding.boschshc.internal.services.dto.BoschSHCServiceState;
18 * Represents a single user-defined state defined on the Bosch Smart Home Controller.
24 * "@type": "userDefinedState",
25 * "id": "23d34fa6-382a-444d-8aae-89c706e22158",
31 * @author Patrick Gell - Initial contribution
33 public class UserDefinedState extends BoschSHCServiceState {
37 private boolean state;
39 public UserDefinedState() {
40 super("UserDefinedState");
43 public String getId() {
47 public void setId(String id) {
51 public String getName() {
55 public void setName(String name) {
59 public boolean isState() {
63 public void setState(boolean state) {
68 public String toString() {
69 return "UserDefinedState{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", state=" + state + ", type='"
73 public static Boolean isValid(UserDefinedState obj) {
74 return obj != null && obj.id != null;