-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings_types.go
More file actions
275 lines (267 loc) · 13.1 KB
/
Copy pathsettings_types.go
File metadata and controls
275 lines (267 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
package securityspy
// Settings types for SecuritySpy v6 ++settings-* endpoints.
// Nested XML blocks (accounts, groups, storage paths) are omitted; use form values for those.
// GeneralSettings holds SecuritySpy v6 settings from settings-general-v6.20.xml.
type GeneralSettings struct {
AllowSleep YesNoBool `xml:"allowSleep"`
AudioDeviceIndex int `xml:"audioDeviceIndex"`
AudioDeviceName string `xml:"audioDeviceName"`
AudioDeviceVol int `xml:"audioDeviceVol"`
AudioDeviceVolText int `xml:"audioDeviceVolText"`
AutoReopen YesNoBool `xml:"autoReopen"`
DateFormat int `xml:"dateFormat"`
DismissAlerts YesNoBool `xml:"dismissAlerts"`
ErrWindow YesNoBool `xml:"errWindow"`
FullVol YesNoBool `xml:"fullVol"`
HissReduction YesNoBool `xml:"hissReduction"`
ImageShare YesNoBool `xml:"imageShare"`
MingSave YesNoBool `xml:"mingSave"`
MuteIncoming YesNoBool `xml:"muteIncoming"`
SendDiagnostics YesNoBool `xml:"sendDiagnostics"`
SharePermission int `xml:"sharePermission"`
SuspendDecoding YesNoBool `xml:"suspendDecoding"`
SysName string `xml:"sysName"`
ThumbCrop int `xml:"thumbCrop"`
TimeFormat int `xml:"timeFormat"`
UpdateNotify int `xml:"updateNotify"`
}
// DisplaySettings holds SecuritySpy v6 settings from settings-display-v6.20.xml.
type DisplaySettings struct {
AutoClose int `xml:"autoClose"`
AutoCloseMins int `xml:"autoCloseMins"`
CropMode int `xml:"cropMode"`
DefaultWindow int `xml:"defaultWindow"`
DisplayQuality int `xml:"displayQuality"`
DivThickness int `xml:"divThickness"`
ExcludedScreens string `xml:"excludedScreens"`
FloatVideo YesNoBool `xml:"floatVideo"`
InfoAudio YesNoBool `xml:"infoAudio"`
InfoBar int `xml:"infoBar"`
InfoFps1 YesNoBool `xml:"infoFps1"`
InfoFps2 YesNoBool `xml:"infoFps2"`
InfoName YesNoBool `xml:"infoName"`
InfoStatus YesNoBool `xml:"infoStatus"`
KioskMode YesNoBool `xml:"kioskMode"`
LowRate YesNoBool `xml:"lowRate"`
MotionBox YesNoBool `xml:"motionBox"`
RememberCamControlPos YesNoBool `xml:"rememberCamControlPos"`
ReplaySeconds int `xml:"replaySeconds"`
}
// StorageSettings holds SecuritySpy v6 settings from settings-storage-v6.20.xml.
type StorageSettings struct {
ArchiveMode int `xml:"archiveMode"`
ArchiveStorage string `xml:"archiveStorage"`
DiskWaitTime int `xml:"diskWaitTime"`
GlobalStorage string `xml:"globalStorage"`
RemoveAgeNonSys int `xml:"removeAgeNonSys"`
RemoveAgeSys int `xml:"removeAgeSys"`
RemoveAutoNonSys int `xml:"removeAutoNonSys"`
RemoveAutoSys int `xml:"removeAutoSys"`
RemoveByAge YesNoBool `xml:"removeByAge"`
RemoveBySpace YesNoBool `xml:"removeBySpace"`
RemoveGbNonSys int `xml:"removeGbNonSys"`
RemoveGbSys int `xml:"removeGbSys"`
Tag1 YesNoBool `xml:"tag-1"`
Tag2 YesNoBool `xml:"tag-2"`
Tag3 YesNoBool `xml:"tag-3"`
Tag4 YesNoBool `xml:"tag-4"`
Tag5 YesNoBool `xml:"tag-5"`
Tag6 YesNoBool `xml:"tag-6"`
Tag7 YesNoBool `xml:"tag-7"`
UsageWarningGb int `xml:"usageWarningGb"`
}
// CompressionSettings holds SecuritySpy v6 settings from settings-compression-v6.20.xml.
type CompressionSettings struct {
AudioCodec int `xml:"audioCodec"`
AudioCodecName string `xml:"audioCodecName"`
AudioQuality int `xml:"audioQuality"`
AudioQualityText int `xml:"audioQualityText"`
JpegQuality int `xml:"jpegQuality"`
JpegQualityText int `xml:"jpegQualityText"`
VideoCodec int `xml:"videoCodec"`
VideoCodecName string `xml:"videoCodecName"`
VideoQuality int `xml:"videoQuality"`
VideoQualityText int `xml:"videoQualityText"`
}
// EmailSettings holds SecuritySpy v6 settings from settings-email-v6.20.xml.
type EmailSettings struct {
Address string `xml:"address"`
DowntimeEmail YesNoBool `xml:"downtimeEmail"`
Encryption int `xml:"encryption"`
ErrEmailLevel int `xml:"errEmailLevel"`
Fps int `xml:"fps"`
FromEmail string `xml:"fromEmail"`
FromName string `xml:"fromName"`
ImageCount int `xml:"imageCount"`
MaxRes int `xml:"maxRes"`
MediaType int `xml:"mediaType"`
SendingMethod int `xml:"sendingMethod"`
StatsEmail YesNoBool `xml:"statsEmail"`
Subject string `xml:"subject"`
SysEmail string `xml:"sysEmail"`
Username string `xml:"username"`
}
// WebSettings holds SecuritySpy v6 settings from settings-web-v6.20.xml.
type WebSettings struct {
AutoNatHTTP YesNoBool `xml:"autoNatHttp"`
AutoNatHTTPS YesNoBool `xml:"autoNatHttps"`
Bonjour YesNoBool `xml:"bonjour"`
CorsDomains string `xml:"corsDomains"`
DdnsName string `xml:"ddnsName"`
DdnsStatus int `xml:"ddnsStatus"`
GeoblockList string `xml:"geoblockList"`
GeoblockType int `xml:"geoblockType"`
HlsMaxFps int `xml:"hlsMaxFps"`
HlsMaxRes int `xml:"hlsMaxRes"`
HTTP YesNoBool `xml:"http"`
HTTPS YesNoBool `xml:"https"`
Iframe YesNoBool `xml:"iframe"`
Legacy YesNoBool `xml:"legacy"`
ListenIps string `xml:"listenIps"`
Log YesNoBool `xml:"log"`
NoHeif YesNoBool `xml:"noHeif"`
PortHTTP int `xml:"portHttp"`
PortHTTPWan int `xml:"portHttpWan"`
PortHTTPS int `xml:"portHttps"`
PortHTTPSWan int `xml:"portHttpsWan"`
PublicResources string `xml:"publicResources"`
ScreenControl YesNoBool `xml:"screenControl"`
SessionLen int `xml:"sessionLen"`
UserHeaders string `xml:"userHeaders"`
UserWanDetails YesNoBool `xml:"userWanDetails"`
VariableFps YesNoBool `xml:"variableFps"`
VideoPassthrough YesNoBool `xml:"videoPassthrough"`
WanAddress string `xml:"wanAddress"`
}
// CameraSettings holds SecuritySpy v6 settings from settings-cameras-v6.20.xml.
type CameraSettings struct {
AComeFront YesNoBool `xml:"aComeFront"`
ADelay int `xml:"aDelay"`
AEmail string `xml:"aEmail"`
ANotification YesNoBool `xml:"aNotification"`
ARedBox YesNoBool `xml:"aRedBox"`
ARedBoxDuration int `xml:"aRedBoxDuration"`
AReset int `xml:"aReset"`
AResetType int `xml:"aResetType"`
AShellCommand string `xml:"aShellCommand"`
ASoundDurationCam int `xml:"aSoundDurationCam"`
ASoundDurationMac int `xml:"aSoundDurationMac"`
ASoundVolCam int `xml:"aSoundVolCam"`
ASoundVolMac int `xml:"aSoundVolMac"`
ATriggerAudio YesNoBool `xml:"aTriggerAudio"`
ATriggerCamMd YesNoBool `xml:"aTriggerCamMd"`
ATriggerCamP1 YesNoBool `xml:"aTriggerCamP1"`
ATriggerCamP2 YesNoBool `xml:"aTriggerCamP2"`
ATriggerCamPir YesNoBool `xml:"aTriggerCamPir"`
ATriggerHome YesNoBool `xml:"aTriggerHome"`
ATriggerMotion YesNoBool `xml:"aTriggerMotion"`
ATriggerMotionA YesNoBool `xml:"aTriggerMotionA"`
ATriggerMotionH YesNoBool `xml:"aTriggerMotionH"`
ATriggerMotionV YesNoBool `xml:"aTriggerMotionV"`
AVolTextCam int `xml:"aVolTextCam"`
AVolTextMac int `xml:"aVolTextMac"`
AWakeScreen YesNoBool `xml:"aWakeScreen"`
Address string `xml:"address"`
AnimalBird YesNoBool `xml:"animalBird"`
AnimalFish YesNoBool `xml:"animalFish"`
AnimalQuadruped YesNoBool `xml:"animalQuadruped"`
AnimalSensitivity int `xml:"animalSensitivity"`
AnimalSensitivityText int `xml:"animalSensitivityText"`
AudioDeviceVol int `xml:"audioDeviceVol"`
AudioSensitivity int `xml:"audioSensitivity"`
AudioSensitivityText int `xml:"audioSensitivityText"`
Brightness int `xml:"brightness"`
CameraNum int `xml:"cameraNum"`
CCFreq int `xml:"ccFreq"`
CCImage YesNoBool `xml:"ccImage"`
CCImageInterval int `xml:"ccImageInterval"`
CCMovie YesNoBool `xml:"ccMovie"`
CCMovieFps int `xml:"ccMovieFps"`
CCMoviePlaybackFps int `xml:"ccMoviePlaybackFps"`
CCRemoveAge int `xml:"ccRemoveAge"`
Cmd0 string `xml:"cmd0"`
Cmd1 string `xml:"cmd1"`
Cmd2 string `xml:"cmd2"`
Cmd3 string `xml:"cmd3"`
CmdName0 string `xml:"cmdName0"`
CmdName1 string `xml:"cmdName1"`
CmdName2 string `xml:"cmdName2"`
CmdName3 string `xml:"cmdName3"`
ConfigVital int `xml:"configVital"`
ConfigureHome int `xml:"configureHome"`
Contrast int `xml:"contrast"`
DeviceType int `xml:"deviceType"`
Enabled YesNoBool `xml:"enabled"`
Fps int `xml:"fps"`
FrameEndMethod int `xml:"frameEndMethod"`
Height int `xml:"height"`
HomeShortcut0 int `xml:"homeShortcut0"`
HomeShortcut1 int `xml:"homeShortcut1"`
HomeShortcut2 int `xml:"homeShortcut2"`
HomeShortcut3 int `xml:"homeShortcut3"`
HomeShortcut4 int `xml:"homeShortcut4"`
HomeShortcut5 int `xml:"homeShortcut5"`
HomeShortcut6 int `xml:"homeShortcut6"`
HomeShortcut7 int `xml:"homeShortcut7"`
HumanSensitivity int `xml:"humanSensitivity"`
HumanSensitivityText int `xml:"humanSensitivityText"`
IntPresets YesNoBool `xml:"intPresets"`
InvertPanTilt YesNoBool `xml:"invertPanTilt"`
LastFormat int `xml:"lastFormat"`
LastInputNum int `xml:"lastInputNum"`
MCDaily int `xml:"mcDaily"`
MCImage YesNoBool `xml:"mcImage"`
MCImageInterval int `xml:"mcImageInterval"`
MCImagePost int `xml:"mcImagePost"`
MCMovie YesNoBool `xml:"mcMovie"`
MCMovieFps int `xml:"mcMovieFps"`
MCMoviePost int `xml:"mcMoviePost"`
MCMoviePre int `xml:"mcMoviePre"`
MCRemoveAge int `xml:"mcRemoveAge"`
MCTriggerAudio YesNoBool `xml:"mcTriggerAudio"`
MCTriggerCamMd YesNoBool `xml:"mcTriggerCamMd"`
MCTriggerCamP1 YesNoBool `xml:"mcTriggerCamP1"`
MCTriggerCamP2 YesNoBool `xml:"mcTriggerCamP2"`
MCTriggerCamPir YesNoBool `xml:"mcTriggerCamPir"`
MCTriggerHome YesNoBool `xml:"mcTriggerHome"`
MCTriggerMotion YesNoBool `xml:"mcTriggerMotion"`
MCTriggerMotionA YesNoBool `xml:"mcTriggerMotionA"`
MCTriggerMotionH YesNoBool `xml:"mcTriggerMotionH"`
MCTriggerMotionV YesNoBool `xml:"mcTriggerMotionV"`
MdType int `xml:"mdType"`
MotionMask string `xml:"motionMask"`
MotionSensitivity int `xml:"motionSensitivity"`
MotionSensitivityText int `xml:"motionSensitivityText"`
Name string `xml:"name"`
NoAudioSend YesNoBool `xml:"noAudioSend"`
NoPtz YesNoBool `xml:"noPtz"`
OmitOptions YesNoBool `xml:"omitOptions"`
OverlayPos int `xml:"overlayPos"`
OverlaySize int `xml:"overlaySize"`
OverlayText string `xml:"overlayText"`
Pasp YesNoBool `xml:"pasp"`
Password string `xml:"password"`
PermissiveSSL YesNoBool `xml:"permissiveSsl"`
PortHTTP int `xml:"portHttp"`
PortRTSP int `xml:"portRtsp"`
PrivacyMask string `xml:"privacyMask"`
PtzMdWait int `xml:"ptzMdWait"`
Quality int `xml:"quality"`
RecompressAudio YesNoBool `xml:"recompressAudio"`
RecompressVideo YesNoBool `xml:"recompressVideo"`
Request string `xml:"request"`
SetSockBuffer YesNoBool `xml:"setSockBuffer"`
SetTime YesNoBool `xml:"setTime"`
SslHTTP YesNoBool `xml:"sslHttp"`
SslRTSP YesNoBool `xml:"sslRtsp"`
SuppressErr YesNoBool `xml:"suppressErr"`
SwTimestamps YesNoBool `xml:"swTimestamps"`
Transformation int `xml:"transformation"`
Username string `xml:"username"`
VehicleSensitivity int `xml:"vehicleSensitivity"`
VehicleSensitivityText int `xml:"vehicleSensitivityText"`
ViewOnly YesNoBool `xml:"viewOnly"`
WebcamFreq int `xml:"webcamFreq"`
WebcamName string `xml:"webcamName"`
Width int `xml:"width"`
}