2 * Copyright (c) 2010-2021 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 com.google.gson.JsonElement;
16 import com.google.gson.annotations.SerializedName;
19 * Represents a device status update as represented by the Smart Home
22 * @author Stefan Kästle - Initial contribution
23 * @author Christian Oeing - refactorings of e.g. server registration
25 public class DeviceStatusUpdate {
27 * Url path of the service the update came from.
32 * The type of message.
34 @SerializedName("@type")
38 * Name of service the update came from.
43 * Current state of device. Serialized as JSON.
45 public JsonElement state;
48 * Id of device the update is for.
50 public String deviceId;
53 public String toString() {
54 return this.deviceId + "state: " + this.type;