]> git.basschouten.com Git - openhab-addons.git/blob
c16313844a2020eeb9d02b47745954c2f485d302
[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.ipcamera.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link CameraConfig} handles the configuration of cameras.
19  *
20  * @author Matthew Skinner - Initial contribution
21  */
22 @NonNullByDefault
23 public class CameraConfig {
24     private String ipAddress = "";
25     private String ffmpegInputOptions = "";
26     private int port;
27     private int onvifPort;
28     private String username = "";
29     private String password = "";
30     private int onvifMediaProfile;
31     private int pollTime;
32     private String ffmpegInput = "";
33     private String snapshotUrl = "";
34     private String mjpegUrl = "";
35     private String alarmInputUrl = "";
36     private String customMotionAlarmUrl = "";
37     private String customAudioAlarmUrl = "";
38     private String updateImageWhen = "";
39     private int nvrChannel;
40     private String ipWhitelist = "";
41     private String ffmpegLocation = "";
42     private String ffmpegOutput = "";
43     private String hlsOutOptions = "";
44     private String gifOutOptions = "";
45     private String mp4OutOptions = "";
46     private String mjpegOptions = "";
47     private String snapshotOptions = "";
48     private String motionOptions = "";
49     private boolean ptzContinuous;
50     private int gifPreroll;
51
52     public int getOnvifMediaProfile() {
53         return onvifMediaProfile;
54     }
55
56     public String getFfmpegInputOptions() {
57         return ffmpegInputOptions;
58     }
59
60     public String getMjpegOptions() {
61         return mjpegOptions;
62     }
63
64     public String getSnapshotOptions() {
65         return snapshotOptions;
66     }
67
68     public String getMotionOptions() {
69         return motionOptions;
70     }
71
72     public String getMp4OutOptions() {
73         return mp4OutOptions;
74     }
75
76     public String getGifOutOptions() {
77         return gifOutOptions;
78     }
79
80     public String getHlsOutOptions() {
81         return hlsOutOptions;
82     }
83
84     public String getIpWhitelist() {
85         return ipWhitelist;
86     }
87
88     public String getFfmpegLocation() {
89         return ffmpegLocation;
90     }
91
92     public String getFfmpegOutput() {
93         return ffmpegOutput;
94     }
95
96     public void setFfmpegOutput(String path) {
97         ffmpegOutput = path;
98     }
99
100     public boolean getPtzContinuous() {
101         return ptzContinuous;
102     }
103
104     public String getAlarmInputUrl() {
105         return alarmInputUrl;
106     }
107
108     public String getCustomAudioAlarmUrl() {
109         return customAudioAlarmUrl;
110     }
111
112     public String getCustomMotionAlarmUrl() {
113         return customMotionAlarmUrl;
114     }
115
116     public int getNvrChannel() {
117         return nvrChannel;
118     }
119
120     public String getMjpegUrl() {
121         return mjpegUrl;
122     }
123
124     public String getSnapshotUrl() {
125         return snapshotUrl;
126     }
127
128     public String getFfmpegInput() {
129         return ffmpegInput;
130     }
131
132     public String getUpdateImageWhen() {
133         return updateImageWhen;
134     }
135
136     public int getPollTime() {
137         return pollTime;
138     }
139
140     public int getOnvifPort() {
141         return onvifPort;
142     }
143
144     public String getIp() {
145         return ipAddress;
146     }
147
148     public String getUser() {
149         return username;
150     }
151
152     public void setUser(String username) {
153         this.username = username;
154     }
155
156     public String getPassword() {
157         return password;
158     }
159
160     public void setPassword(String password) {
161         this.password = password;
162     }
163
164     public int getGifPreroll() {
165         return gifPreroll;
166     }
167
168     public int getPort() {
169         return port;
170     }
171 }