]> git.basschouten.com Git - openhab-addons.git/blob
37a9522df3eda7cf029b0b0266393aa424693a2a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.avmfritz.internal.dto;
14
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;
19
20 /**
21  * See {@link DeviceListModel}.
22  *
23  * @author Joshua Bacher - Initial contribution
24  */
25 @XmlAccessorType(XmlAccessType.FIELD)
26 @XmlRootElement(name = "colorcontrol")
27 public class ColorControlModel {
28
29     @XmlAttribute(name = "supported_modes")
30     public int supportedModes;
31     @XmlAttribute(name = "current_mode")
32     public int currentMode;
33     public int hue;
34     public int saturation;
35     public int temperature;
36
37     @Override
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();
42     }
43 }