]> git.basschouten.com Git - openhab-addons.git/blob
5f8cc7a179e2516cec32fb3f01b528584521895d
[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.unifi.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link UniFiVoucherChannelConfig} encapsulates all the configuration options for the guestVouchersGenerate
20  * channel on the UniFi Site thing.
21  *
22  * @author Mark Herwege - Initial contribution
23  */
24 @NonNullByDefault
25 public class UniFiVoucherChannelConfig {
26
27     private int voucherCount;
28     private int voucherExpiration;
29     private int voucherUsers;
30     private @Nullable Integer voucherUpLimit;
31     private @Nullable Integer voucherDownLimit;
32     private @Nullable Integer voucherDataQuota;
33
34     public int getCount() {
35         return voucherCount;
36     }
37
38     public int getExpiration() {
39         return voucherExpiration;
40     }
41
42     public int getVoucherUsers() {
43         return voucherUsers;
44     }
45
46     public @Nullable Integer getUpLimit() {
47         return voucherUpLimit;
48     }
49
50     public @Nullable Integer getDownLimit() {
51         return voucherDownLimit;
52     }
53
54     public @Nullable Integer getDataQuota() {
55         return voucherDataQuota;
56     }
57 }