]> git.basschouten.com Git - openhab-addons.git/blob
fec06b191ac55670839d937fab8ea256a4c54a88
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.yamahamusiccast.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * This class represents the actual_volume object of the Status request requested from API or the UDP event from the
19  * Yamaha model/device.
20  *
21  * @author Florian Hotze - Initial contribution
22  */
23 public class ActualVolume {
24
25     @SerializedName("mode")
26     private String mode;
27
28     @SerializedName("value")
29     private float value;
30
31     @SerializedName("unit")
32     private String unit;
33
34     public String getMode() {
35         if (mode == null) {
36             mode = "";
37         }
38         return mode;
39     }
40
41     /**
42      * Volume in decibels (dB).
43      *
44      * @return volume in decibels (dB)
45      */
46     public float getValue() {
47         return value;
48     }
49
50     public String getUnit() {
51         if (unit == null) {
52             unit = "";
53         }
54         return unit;
55     }
56 }