2 * Copyright (c) 2010-2022 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.lgwebos.internal.handler.core;
15 import com.google.gson.JsonElement;
18 * {@link Response} is a value object for a response message from WebOSTV.
20 * @author Sebastian Prehn - Initial contribution
22 public class Response {
23 /** Required response type */
25 /** Optional payload */
26 private JsonElement payload;
28 * Message ID to which this is a response to.
34 // no-argument constructor for gson
37 /** Optional error message. */
40 public Integer getId() {
44 public String getType() {
48 public String getError() {
52 public JsonElement getPayload() {