JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
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
//
//  Copyright © 2018年 Zhejiang Dahua Technology Co.,Ltd. All rights reserved.
//
 
/// 错误类型
enum DHOMSErrorType: String {
    case old = "ErrorTipsType" /** 旧的错误类型 */
    case wifi = "WifiErrorTipsType" /** WIFI错误类型 */
    case softAp = "SoftAPErrorTipsType" /** 软AP的错误类型 */
}
 
struct DHOMSLightCheckInfo {
    /// 设备指示灯闪烁图片url
    var lightTwinkleImageUrl: String?
    
    /// 设备指示灯闪烁内容
    var lightTwinkleContent: String?
    
    /// 设备指示灯闪烁确认
    var lightTwinklConfirm: String?
    
    static let keyWifiModeImageUrl = "WifiModeGuidingLightImage"
    static let keyWifiModeContent = "WifiModeConfigIntroduction"
    static let keyWifiModeConfirm = "WifiModeConfigConfirmIntroduction"
    
    static let keyHubModeImageUrl = "HubModePairStatusImage"
    static let keyHubModeContent = "HubModePairOperationIntroduction"
    static let keyHubModeConfirm = "HubModeAccsesoryConfigConfirmIntroduction"
    
    static let keyHubModeAccessoryImageUrl = "HubAccessoryModePairStatusImage"
    static let keyHubModeAccessoryContent = "HubAccessoryModePairOperationIntroduction"
    static let keyHubModeAccessoryConfirm = "HubModeAccsesoryConfigConfirmIntroduction"
    
    static let keyAccessoryModeImageUrl = "AccessoryModePairStatusImage"
    static let keyAccessoryModeContent = "AccessoryModePairOperationIntroduction"
    static let keyAccessoryModeConfirm = "AccessoryModePairConfirmIntroduction"
}
 
struct DHOMSLightResetInfo {
    var resetImageUrl: String?
    var resetGuide: String?
    var resetOperation: String?
    
    static let keyWifiModeImageUrl = "WifiModeResetImage"
    static let keyWifiModeGuide = "WifiModeResetGuideIntroduction"
    static let keyWifiModeOperation = "WifiModeResetOperationIntroduction"
    
    static let keyHubModeImageUrl = "HubModeResetImage"
    static let keyHubModeGuide = "HubModeResetGuideIntroduction"
    static let keyHubModeOperation = "HubModeResetOperationIntroduction"
    
    static let keyHubModeAccessoryImageUrl = "HubAccessoryModeResetImage"
    static let keyHubModeAccessoryGuide = "HubAccessoryModeResetGuideIntroduction"
    static let keyHubModeAccessoryOperation = "HubAccessoryModeResetOperationIntroduction"
    
    static let keySoftApModeImageUrl = "SoftAPModeResetImage"
    static let keySoftApModeGuide = "SoftAPModeResetGuideIntroduction"
    static let keySoftApModeOperation = "SoftAPModeResetOperationIntroduction"
    
    static let keyAccessoryModeImageUrl = "AccessoryModeResetImage"
    static let keyAccessoryModeGuide = "AccessoryModeResetGuideIntroduction"
    static let keyAccessoryModeOperation = "AccessoryModeResetOperationIntroduction"
}
 
/// 配对、添加完成信息
struct DHOMSDoneInfo {
    var imageUrl: String?
    
    /// 增加Hub与电池相机配对的完成图(只有这个比较特殊,hub添加与电池相册配对,都使用的hub型号);
    var hubPairImageUrl: String?
    
    var content: String?
    var guide: String?
    
    /// 软AP(p2p)完成引导页的图片
    var guideImageUrl: String?
    
    static let keyWifiModeDoneImageUrl = "WifiModeFinishDeviceImage"
    
    static let keyHubModePairDoneImageUrl = "HUBModeResultPromptImage"
    static let keyHubModePairDoneContent = "HUBModeResultIntroduction"
    static let keyHubModePairDoneRepairGuide = "HUBModeConfirmIntroduction"
    
    static let keySoftApModePairDoneImageUrl = "SoftAPModeResultPromptImage"
    static let keySoftApModePairDoneGuideImageUrl = "SoftAPModeResultIntroductionImage"
    static let keySoftApModePairDoneContent = "SoftAPModeResultIntroduction"
    static let keySoftApModePairDoneRepairGuide = "SoftAPModeConfirmIntroduction"
    
    static let keyAccessoryModePairDoneImageUrl = "AccessoryModeFinishDeviceImage"
    
    static let keyLocalModePairdDoneImageUrl = "LocationModeFinishDeviceImage"
    
    static let keyNBModePairDoneImageUrl = "ThirdPartyPlatformModeResultPromptImage"
}
 
/// SoftAP引导
struct DHOMSSoftApGuideInfo {
    var wifiName: String?
    var wifiModelVersion: String?
    var guideSteps: [DHOMSSoftApGuideStep] = [DHOMSSoftApGuideStep]()
    
    static let keyWifiName = "SoftAPModeWifiName"
    static let keyWifiModelVersion = "SoftAPModeWifiVersion"
}
 
/// SoftAP引导:步骤
struct DHOMSSoftApGuideStep {
    var imageUrl: String?
    var content: String?
    
    static let keySoftApGuideMaxStep: Int = 4
    
    static let keySoftApStepOneGuide = "SoftAPModeGuidingStepOneIntroduction"
    static let keySoftApStepOneImageUrl = "SoftAPModeGuidingStepOneImage"
    
    static let keySoftApStepTwoGuide = "SoftAPModeGuidingStepTwoIntroduction"
    static let keySoftApStepTwoImageUrl = "SoftAPModeGuidingStepTwoImage"
    
    static let keySoftApStepThreeGuide = "SoftAPModeGuidingStepThreeIntroduction"
    static let keySoftApStepThreeImageUrl = "SoftAPModeGuidingStepThreeImage"
    
    static let keySoftApStepFourGuide = "SoftAPModeGuidingStepFourIntroduction"
    static let keySoftApStepFourImageUrl = "SoftAPModeGuidingStepFourImage"
}
 
 
// MARK: - Local Guide
struct DHOMSSLocalGuideInfo {
    var content: String?
    var imageUrl: String?
    
    static let keyLocalModeImageUrl = "LocationOperationImages"
    static let keyLocalModeContent = "LocationOperationIntroduction"
}
 
// MARK: - NBIoT Guide
struct DHOMSSNBIoTGuideInfo {
    var imageUrl: String?
    var content: String?
 
    static let keyNBIoTModeImageUrl = "ThirdPartyPlatformModeGuidingLightImage"
    static let keyNBIoTModeContent = "ThirdPartyPlatformModeConfigIntroduction"
}
 
// MARK: 默认值分类IPC
///通用IPC指示灯默认值
struct DHIPCLightCheckDefault {
    static let imagename = "adddevice_default_wps"
    static let twinkleContent = "add_device_operation_by_instructions".lc_T
    static let twinkleConfirm = "add_device_complete_related_operations".lc_T
}
 
/// 通用IPC指示灯重置默认值
struct DHIPCLightResetDefault {
    static let imagename = "adddevice_default_reset"
    static let guide = ""
    static let operation = ""
}
 
/// 通用IPC完成默认值
struct DHIPCDoneDefault {
    static let imagename = "adddevice_device_default"
}
 
// MARK: 默认值分类Hub
/// Hub指示灯默认值
struct DHHubLightCheckDefault {
    static let imagename = "adddevice_default_wps"
    static let twinkleContent = "add_device_operation_by_instructions".lc_T
    static let twinkleConfirm = ""
}
 
/// Hub指示灯重置默认值
struct DHHubLightResetDefault {
    static let imagename = "adddevice_default_reset"
    static let guide = ""
    static let operation = ""
}
 
/// Hub配件指示灯默认值
struct DHHubAccessoryLightCheckDefault {
    static let imagename = "adddevice_default_wps"
    static let twinkleContent = "add_device_operation_by_instructions".lc_T
    static let twinkleConfirm = ""
}
 
/// Hub配件指示灯重置默认值
struct DHHubAccessoryLightResetDefault {
    static let imagename = "adddevice_default_reset"
    static let guide = ""
    static let operation = ""
}
 
/// Hub配对完成默认值
struct DHOMSHubPairDoneDefault {
    static let imagename = "adddevice_default"
    static let content = "add_device_operation_by_instructions".lc_T
    static let guide = "add_device_re_add".lc_T
}
 
// MARK: 默认值分类SoftAP
/// SoftAp默认值
struct DHOMSSoftApGuideDefault {
    static let wifiname = "add_device_mode_xxxx".lc_T
    static let imagename = "adddevice_common"
    static let content = "add_device_operation_by_ap_instructions".lc_T
}
 
/// Soft重置默认值
struct DHSoftApResetDefault {
    static let imagename = "adddevice_default_reset"
    static let guide = ""
    static let operation = ""
}
 
/// SoftAp完成默认值
struct DHOMSSoftAPDoneDefault {
    static let imagename = "adddevice_default_success"
    static let content = "add_device_operation_by_instructions".lc_T
    static let guide = "add_device_complete_related_operations".lc_T
}
 
// MARK: 默认值分类 配件
///配件指示灯默认值
struct DHAccessoryLightCheckDefault {
    static let imagename = "adddevice_default_wps"
    static let twinkleContent = "add_device_operation_by_instructions".lc_T
    static let twinkleConfirm = "add_device_complete_related_operations".lc_T
}
 
/// 配件指示灯重置默认值
struct DHAccessoryResetDefault {
    static let imagename = "adddevice_default_reset"
    static let guide = ""
    static let operation = ""
}
 
/// 配件完成默认值
struct DHAccessoryDoneDefault {
    static let imagename = "adddevice_default_success"
}
 
///MARK: 本地配网默认分类
struct DHOMSSLocalGuideDefault {
    static let imagename = "adddevice_netsetting_networkcable"
    static let content = "抱歉,您的设备未完成配网流程。请先在设备上配网完成后再用手机添加".lc_T
}
 
///MARK: NB配网默认分类
struct DHOMSSNBGuideDefault {
    static let imagename = "adddevice_default"
    static let content = "请先按设备的自检/消音按钮".lc_T
}