]> git.basschouten.com Git - openhab-addons.git/blob
fbbbed579bfc2c8a0271f523d0036ee2484009a6
[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     public boolean useToken = true;
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 snapshotOptions = "";
49     private String motionOptions = "";
50     private boolean ptzContinuous;
51     private int gifPreroll;
52
53     public int getOnvifMediaProfile() {
54         return onvifMediaProfile;
55     }
56
57     public String getFfmpegInputOptions() {
58         return ffmpegInputOptions;
59     }
60
61     public String getMjpegOptions() {
62         return mjpegOptions;
63     }
64
65     public String getSnapshotOptions() {
66         return snapshotOptions;
67     }
68
69     public String getMotionOptions() {
70         return motionOptions;
71     }
72
73     public String getMp4OutOptions() {
74         return mp4OutOptions;
75     }
76
77     public String getGifOutOptions() {
78         return gifOutOptions;
79     }
80
81     public String getHlsOutOptions() {
82         return hlsOutOptions;
83     }
84
85     public String getIpWhitelist() {
86         return ipWhitelist;
87     }
88
89     public String getFfmpegLocation() {
90         return ffmpegLocation;
91     }
92
93     public String getFfmpegOutput() {
94         return ffmpegOutput;
95     }
96
97     public void setFfmpegOutput(String path) {
98         ffmpegOutput = path;
99     }
100
101     public boolean getPtzContinuous() {
102         return ptzContinuous;
103     }
104
105     public String getAlarmInputUrl() {
106         return alarmInputUrl;
107     }
108
109     public String getCustomAudioAlarmUrl() {
110         return customAudioAlarmUrl;
111     }
112
113     public String getCustomMotionAlarmUrl() {
114         return customMotionAlarmUrl;
115     }
116
117     public int getNvrChannel() {
118         return nvrChannel;
119     }
120
121     public String getMjpegUrl() {
122         return mjpegUrl;
123     }
124
125     public String getSnapshotUrl() {
126         return snapshotUrl;
127     }
128
129     public String getFfmpegInput() {
130         return ffmpegInput;
131     }
132
133     public String getUpdateImageWhen() {
134         return updateImageWhen;
135     }
136
137     public int getPollTime() {
138         return pollTime;
139     }
140
141     public int getOnvifPort() {
142         return onvifPort;
143     }
144
145     public String getIp() {
146         return ipAddress;
147     }
148
149     public String getUser() {
150         return username;
151     }
152
153     public void setUser(String username) {
154         this.username = username;
155     }
156
157     public String getPassword() {
158         return password;
159     }
160
161     public void setPassword(String password) {
162         this.password = password;
163     }
164
165     public int getGifPreroll() {
166         return gifPreroll;
167     }
168
169     public int getPort() {
170         return port;
171     }
172 }