]> git.basschouten.com Git - openhab-addons.git/blob
dcfeb3ade41b6cc2f0ececcbb49b767e071d1ea4
[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.zoneminder.internal.config;
14
15 import static org.openhab.binding.zoneminder.internal.ZmBindingConstants.DEFAULT_URL_PATH;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * The {@link ZmBridgeConfig} class contains fields mapping thing configuration parameters.
22  *
23  * @author Mark Hilbush - Initial contribution
24  */
25 @NonNullByDefault
26 public class ZmBridgeConfig {
27
28     /**
29      * Host name or IP address of Zoneminder server
30      */
31     public String host = "";
32
33     /**
34      * Use http or https
35      */
36     public Boolean useSSL = Boolean.FALSE;
37
38     /**
39      * Port number
40      */
41     public @Nullable Integer portNumber;
42
43     /**
44      * URL fragment (e.g. /zm)
45      */
46     public String urlPath = DEFAULT_URL_PATH;
47
48     /**
49      * Frequency at which monitor status will be updated
50      */
51     public @Nullable Integer refreshInterval;
52
53     /**
54      * Alarm duration set on monitor things when they're discovered
55      */
56     public @Nullable Integer defaultAlarmDuration;
57
58     /**
59      * Default image refresh interval set on monitor things when they're discovered
60      */
61     public @Nullable Integer defaultImageRefreshInterval;
62
63     /**
64      * Enable/disable monitor discovery
65      */
66     public Boolean discoveryEnabled = Boolean.TRUE;
67
68     /**
69      * Zoneminder user name
70      */
71     public @Nullable String user;
72
73     /**
74      * Zoneminder password
75      */
76     public @Nullable String pass;
77 }