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.tplinksmarthome.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * Data class for getting the response from the Light bulb. This class is similar to {@link TransitionLightState} but
19 * has no subclasses for the light state. The other class has and makes it difficult to use to deserialize by gson.
21 * @author Hilbrand Bouwkamp - Initial contribution
23 public class TransitionLightStateResponse implements HasErrorResponse {
25 public static class LightingService {
26 private LightState transitionLightState;
29 public String toString() {
30 return "LightingService:{" + transitionLightState + "}";
34 @SerializedName("smartlife.iot.smartbulb.lightingservice")
35 private LightingService service = new LightingService();
38 public ErrorResponse getErrorResponse() {
39 return service.transitionLightState;
43 public String toString() {
44 return "TransitionLightStateResponse {service:{" + service + "}";