]> git.basschouten.com Git - openhab-addons.git/blob
313ed8cae410184510f0af7bc33b043c07e49e20
[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.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 int serverPort;
29     private String username = "";
30     private String password = "";
31     private int onvifMediaProfile;
32     private int pollTime;
33     private String ffmpegInput = "";
34     private String snapshotUrl = "";
35     private String mjpegUrl = "";
36     private String alarmInputUrl = "";
37     private String customMotionAlarmUrl = "";
38     private String customAudioAlarmUrl = "";
39     private String updateImageWhen = "";
40     private int nvrChannel;
41     private String ipWhitelist = "";
42     private String ffmpegLocation = "";
43     private String ffmpegOutput = "";
44     private String hlsOutOptions = "";
45     private String gifOutOptions = "";
46     private String mp4OutOptions = "";
47     private String mjpegOptions = "";
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 getMotionOptions() {
65         return motionOptions;
66     }
67
68     public String getMp4OutOptions() {
69         return mp4OutOptions;
70     }
71
72     public String getGifOutOptions() {
73         return gifOutOptions;
74     }
75
76     public String getHlsOutOptions() {
77         return hlsOutOptions;
78     }
79
80     public String getIpWhitelist() {
81         return ipWhitelist;
82     }
83
84     public String getFfmpegLocation() {
85         return ffmpegLocation;
86     }
87
88     public String getFfmpegOutput() {
89         return ffmpegOutput;
90     }
91
92     public boolean getPtzContinuous() {
93         return ptzContinuous;
94     }
95
96     public String getAlarmInputUrl() {
97         return alarmInputUrl;
98     }
99
100     public String getCustomAudioAlarmUrl() {
101         return customAudioAlarmUrl;
102     }
103
104     public String getCustomMotionAlarmUrl() {
105         return customMotionAlarmUrl;
106     }
107
108     public int getNvrChannel() {
109         return nvrChannel;
110     }
111
112     public String getMjpegUrl() {
113         return mjpegUrl;
114     }
115
116     public String getSnapshotUrl() {
117         return snapshotUrl;
118     }
119
120     public String getFfmpegInput() {
121         return ffmpegInput;
122     }
123
124     public String getUpdateImageWhen() {
125         return updateImageWhen;
126     }
127
128     public int getPollTime() {
129         return pollTime;
130     }
131
132     public int getOnvifPort() {
133         return onvifPort;
134     }
135
136     public int getServerPort() {
137         return serverPort;
138     }
139
140     public String getIp() {
141         return ipAddress;
142     }
143
144     public String getUser() {
145         return username;
146     }
147
148     public void setUser(String username) {
149         this.username = username;
150     }
151
152     public String getPassword() {
153         return password;
154     }
155
156     public void setPassword(String password) {
157         this.password = password;
158     }
159
160     public int getGifPreroll() {
161         return gifPreroll;
162     }
163
164     public int getPort() {
165         return port;
166     }
167 }