]> git.basschouten.com Git - openhab-addons.git/blob
82e6e07f63dcfdb1f54dc8c6cbb23a14442c0b8d
[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.smartthings.internal.dto;
14
15 /**
16  * Data object for smartthings state data
17  *
18  * @author Bob Raker - Initial contribution
19  */
20 public class SmartthingsStateData {
21     public String deviceDisplayName;
22     public String capabilityAttribute;
23     public String value;
24
25     public SmartthingsStateData() {
26         // These values will always be overridden when the object is initialized by GSon
27         deviceDisplayName = "";
28         capabilityAttribute = "";
29         value = "";
30     }
31
32     @Override
33     public String toString() {
34         StringBuffer sb = new StringBuffer();
35         sb.append(", deviceDisplayName :").append(deviceDisplayName);
36         sb.append(", capabilityAttribute :").append(capabilityAttribute);
37         sb.append(", value :").append(value);
38         return sb.toString();
39     }
40 }