]> git.basschouten.com Git - openhab-addons.git/blob
3a6125860fc545b257cd78745a71d5885f4c5f3d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.denonmarantz.internal.xml.entities.types;
14
15 import java.math.BigDecimal;
16
17 import javax.xml.bind.annotation.XmlAccessType;
18 import javax.xml.bind.annotation.XmlAccessorType;
19 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
20
21 import org.openhab.binding.denonmarantz.internal.xml.adapters.VolumeAdapter;
22
23 /**
24  * Contains a volume value (percentage)
25  *
26  * @author Jeroen Idserda - Initial contribution
27  */
28 @XmlAccessorType(XmlAccessType.FIELD)
29 public class VolumeType {
30
31     @XmlJavaTypeAdapter(value = VolumeAdapter.class)
32     private BigDecimal value;
33
34     public BigDecimal getValue() {
35         return value;
36     }
37
38     public void setValue(BigDecimal value) {
39         this.value = value;
40     }
41 }