]> git.basschouten.com Git - openhab-addons.git/blob
b1b170b114b619a22a05dc1d2a7dfc9f3199b130
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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      * Enable/disable monitor discovery
55      */
56     public @Nullable Boolean discoveryEnabled;
57
58     /**
59      * Frequency at which the binding will try to discover monitors
60      */
61     public @Nullable Integer discoveryInterval;
62
63     /**
64      * Alarm duration set on monitor things when they're discovered
65      */
66     public @Nullable Integer defaultAlarmDuration;
67
68     /**
69      * Default image refresh interval set on monitor things when they're discovered
70      */
71     public @Nullable Integer defaultImageRefreshInterval;
72
73     /**
74      * Zoneminder user name
75      */
76     public @Nullable String user;
77
78     /**
79      * Zoneminder password
80      */
81     public @Nullable String pass;
82 }