]> git.basschouten.com Git - openhab-addons.git/blob
3fb65cf605d55f795c00238f5265dc6f8f8989b0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.neeo.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Configuration used by {@link org.openhab.binding.neeo.internal.handler.NeeoRoomHandler}
20  *
21  * @author Tim Roberts - initial contribution
22  */
23 @NonNullByDefault
24 public class NeeoRoomConfig {
25
26     /** The NEEO room key */
27     @Nullable
28     private String roomKey;
29
30     /** The refresh polling (in seconds) */
31     private int refreshPolling;
32
33     /** Whether to exclude things */
34     private boolean excludeThings;
35
36     /**
37      * Gets the room key
38      *
39      * @return the room key
40      */
41     @Nullable
42     public String getRoomKey() {
43         return roomKey;
44     }
45
46     /**
47      * Sets the room key.
48      *
49      * @param roomKey the new room key
50      */
51     public void setRoomKey(String roomKey) {
52         this.roomKey = roomKey;
53     }
54
55     /**
56      * Gets the refresh polling (in seconds)
57      *
58      * @return the refresh polling
59      */
60     public int getRefreshPolling() {
61         return refreshPolling;
62     }
63
64     /**
65      * Set's the refresh polling
66      *
67      * @param refreshPolling the refresh polling
68      */
69     public void setRefreshPolling(int refreshPolling) {
70         this.refreshPolling = refreshPolling;
71     }
72
73     /**
74      * Whether to exclude things or not
75      *
76      * @return true to exclude, false otherwise
77      */
78     public boolean isExcludeThings() {
79         return excludeThings;
80     }
81
82     /**
83      * Sets whether to exclude things
84      *
85      * @param excludeThings true to exclude, false otherwise
86      */
87     public void setExcludeThings(boolean excludeThings) {
88         this.excludeThings = excludeThings;
89     }
90 }