2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.zoneminder.internal.config;
15 import static org.openhab.binding.zoneminder.internal.ZmBindingConstants.DEFAULT_URL_PATH;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * The {@link ZmBridgeConfig} class contains fields mapping thing configuration parameters.
23 * @author Mark Hilbush - Initial contribution
26 public class ZmBridgeConfig {
29 * Host name or IP address of Zoneminder server
31 public String host = "";
36 public Boolean useSSL = Boolean.FALSE;
41 public @Nullable Integer portNumber;
44 * URL fragment (e.g. /zm)
46 public String urlPath = DEFAULT_URL_PATH;
49 * Frequency at which monitor status will be updated
51 public @Nullable Integer refreshInterval;
54 * Alarm duration set on monitor things when they're discovered
56 public @Nullable Integer defaultAlarmDuration;
59 * Default image refresh interval set on monitor things when they're discovered
61 public @Nullable Integer defaultImageRefreshInterval;
64 * Enable/disable monitor discovery
66 public Boolean discoveryEnabled = Boolean.TRUE;
69 * Zoneminder user name
71 public @Nullable String user;
76 public @Nullable String pass;