]> git.basschouten.com Git - openhab-addons.git/blob
c41ea33c031beb4858a35e6c2f57182dd5e8602b
[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.nanoleaf.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Represents brightness setting of the light panels
20  *
21  * @author Martin Raepple - Initial contribution
22  */
23 @NonNullByDefault
24 public class Brightness implements IntegerState {
25
26     private int value;
27     private @Nullable Integer max;
28     private @Nullable Integer min;
29
30     @Override
31     public int getValue() {
32         return value;
33     }
34
35     @Override
36     public void setValue(int value) {
37         this.value = value;
38     }
39
40     public @Nullable Integer getMax() {
41         return max;
42     }
43
44     public void setMax(Integer max) {
45         this.max = max;
46     }
47
48     public @Nullable Integer getMin() {
49         return min;
50     }
51
52     public void setMin(Integer min) {
53         this.min = min;
54     }
55 }