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.avmfritz.internal.dto;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlAttribute;
18 import javax.xml.bind.annotation.XmlRootElement;
21 * See {@link DeviceListModel}.
23 * @author Joshua Bacher - Initial contribution
25 @XmlAccessorType(XmlAccessType.FIELD)
26 @XmlRootElement(name = "colorcontrol")
27 public class ColorControlModel {
29 @XmlAttribute(name = "supported_modes")
30 public int supportedModes;
31 @XmlAttribute(name = "current_mode")
32 public int currentMode;
34 public int saturation;
35 public int temperature;
38 public String toString() {
39 return new StringBuilder("[supportedModes=").append(supportedModes).append(",currentMode=").append(currentMode)
40 .append(",hue=").append(hue).append(",saturation=").append(saturation).append(",temperature=")
41 .append(temperature).append("]").toString();