CrabtreeOn,印度客户定制APP,迁移2.0平台版本
JLChen
2021-01-12 6f17148ec371799405ff351ba8947ba9fdece797
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
using System;
namespace Shared
{
    public class API
    {
 
        # region ZigbeeUsers 部分
        //***************************ZigbeeUsers 部分********************************
        public static string API_ZigbeeUsers = "/ZigbeeUsers/";
        ///// <summary>
        ///// 连接服务器
        ///// Connection
        ///// </summary>
        //public static string Connection = API_ZigbeeUsers + "/Connection";
        ///// <summary>
        ///// Users - 使用帐号密码登录
        ///// ZigbeeUsers/Login
        ///// </summary>
        //public static string Login = API_ZigbeeUsers + "Login";
 
        ///// <summary>
        ///// 用户是否存在
        ///// </summary>
        //public static string IsExistingAccount = API_ZigbeeUsers + "IsExistingAccount";
 
        ///// <summary>
        ///// HomeList
        ///// </summary>
        //public static string HomeList = "HangZhouHdlCloudApi/ZigbeeUsers/HomeList";
 
 
        ///// <summary>
        ///// 修改用户密码
        ///// </summary>
        //public static string UpdatePassword = API_ZigbeeUsers + "UpdatePassword";
 
        ///// <summary>
        ///// 判断账号是否存在
        ///// </summary>
        //public static string DetectionAccount = API_ZigbeeUsers + "DetectionAccount";
        ///// <summary>
        ///// 注册账号 发送邮件确认的方式
        ///// </summary>
        //public static string YdRegisterAccount = API_ZigbeeUsers + "YdRegisterAccount";
        ///// <summary>
        ///// 忘记密码
        ///// </summary>
        //public static string YdForgetPassword = API_ZigbeeUsers + "YdForgetPassword";
        ///// <summary>
        /////  绑定子账号到项目  need Authorization
        ///// </summary>
        //public static string BindSubAccount = API_ZigbeeUsers + "BindSubAccount";
        ///// <summary>
        ///// 解除子账号和住宅的绑定  need Authorization
        ///// </summary>
        //public static string DeletedSubAccount = API_ZigbeeUsers + "DeletedSubAccount";
        ///// <summary>
        ///// 获取项目(住宅)下面的子账号  need Authorization
        ///// </summary>
        //public static string GetSubAccountByDistributedMark = API_ZigbeeUsers + "GetSubAccountByDistributedMark";
 
 
        ///// <summary>
        ///// UpdateRemoteSwitchPassword
        ///// </summary>
        //public static string UpdateRemoteSwitchPassword = API_ZigbeeUsers + "UpdateRemoteSwitchPassword";
        #endregion
 
        #region APP 部分
        //***************************APP 部分********************************
        public static string API_APP = "/App/";
 
        ///// <summary>
        /////  1.21 添加项目(住宅)[App(网关)手动备份]备注文件夹
        ///// </summary>
        //public static string AddHomeAppGatewayName = API_APP + "AddHomeAppGatewayName";
        ///// <summary>
        /////  1.22 上传[项目(住宅(App(网关)手动备份]子文件
        ///// </summary>
        //public static string UploadHomeAppGatewaySubFiles = API_APP + "UploadHomeAppGatewaySubFiles";
        //public static string UploadHomeAppGatewaySingleSubFile = API_APP + "UploadHomeAppGatewaySingleSubFile";
 
        /////// <summary>
        ///////  1.23 删除App备份[手动备份住宅、手动备份网关、自动备份住宅、公共备份]的某些文件
        /////// </summary>
        ////public static string DeleteAppBackupFile = API_APP + "DeleteAppBackupFile";
        ///// <summary>
        /////  1.24 获取住宅备份数据_分页
        ///// </summary>
        //public static string GetHomeDataBackupPagger = API_APP + "GetHomeDataBackupPagger";
        ///// <summary>
        /////  1.25 获取备份文件不带数据_分页
        ///// </summary>
        //public static string GetHomeDataBackupUploadListPagger = API_APP + "GetHomeDataBackupUploadListPagger";
        ///// <summary>
        /////  1.26 下载某一个备份数据文件
        ///// </summary>
        //public static string DownloadSomeDataBackup = API_APP + "DownloadSomeDataBackup";
        ///// <summary>
        /////  1.27 删除项目(住宅)各种备份文件夹(文件夹下所有文件也会删除)
        ///// </summary>
        //public static string DelHomeAppGatewayName = API_APP + "DelHomeAppGatewayName";
        ///// <summary>
        /////  1.28 更新项目(住宅)[App(网关)手动备份]备注名
        ///// </summary>
        //public static string UpdateHomeAppGatewayName = API_APP + "UpdateHomeAppGatewayName";
        ///// <summary>
        /////  1.29 项目(住宅)下App自动备份
        ///// </summary>
        //public static string HomeAppAutoDataBackup = API_APP + "HomeAppAutoDataBackup";
 
 
        ///// <summary>
        /////  1.61 绑定网关到项目(住宅)
        ///// </summary>
        //public static string BindGatewayToHome = API_APP + "BindGatewayToHome";
        ///// <summary>
        /////  1.62 解绑定网关到项目(住宅)
        ///// </summary>
        //public static string ReleaseGatewayToHome = API_APP + "ReleaseGatewayToHome";
 
 
 
 
        ///// <summary>
        /////  1.63 获得某个帐号所有已绑定的网关分页
        ///// </summary>
        //public static string GetAllBindGatewarysPagger = API_APP + "GetAllBindGatewarysPagger";
        ///// <summary>
        /////  1.64 获取某个住宅的网关分页
        ///// </summary>
        //public static string GetSingleHomeGatewayPagger = API_APP + "GetSingleHomeGatewayPagger";
 
        ///// <summary>
        /////  1.65 UpdateMac 更新Mac(印度)
        ///// </summary>
        //public static string UpdateMac = API_APP + "UpdateMac";
 
        ///// <summary>
        /////  1.66 BindMac 更新绑定Mac(印度)
        ///// </summary>
        //public static string BindMac = API_APP + "BindMac";
 
        
 
 
        ///// <summary>
        /////  1.81 添加项目(住宅)
        ///// </summary>
        //public static string AddHome = API_APP + "AddHome";
 
        ///// <summary>
        ///// 1.82删除项目 (住宅)
        ///// </summary>
        //public static string DelHome = API_APP + "DelHome";
       
        ///// <summary>
        ///// 1.83 编辑项目(住宅)
        ///// </summary>
        //public static string EditHome = API_APP + "EditHome";
 
        ///// <summary>
        /////  1.84 获取项目 (住宅)分页
        ///// </summary>
        //public static string GetHomePager = API_APP + "GetHomePager";
 
        ///// <summary>
        /////  1.85 获取控制分享项目(住宅)请求信息
        ///// </summary>
        //public static string GetSharedHomeApiControl = API_APP + "GetSharedHomeApiControl";
        
 
        #endregion
 
        #region Timer 部分
        //***************************Timer 部分********************************
        public static string API_Timer = "/Timer/";
        /// <summary>
        ///  3.1 删除定时器
        /// </summary>
        public static string DeleteTimer = API_Timer + "DeleteTimer";
        /// <summary>
        ///  3.2 启用或禁用定时器
        /// </summary>
        public static string IsEnableTimer = API_Timer + "IsEnableTimer";
        /// <summary>
        ///  3.3 查询定时器列表
        /// </summary>
        public static string GetTimerList = API_Timer + "GetTimerList";
        /// <summary>
        ///  3.4 添加定时器
        /// </summary>
        public static string AddTimer = API_Timer + "AddTimer";
        /// <summary>
        ///  3.5 编辑定时器
        /// </summary>
        public static string EditTimer = API_Timer + "EditTimer";
        #endregion
 
        #region Alexa设备管理 部分
        //***************************Alexa设备管理 部分********************************
        public static string API_Device = "/Device/";
        /// <summary>
        ///  4.1 上传设备
        /// </summary>
        public static string UploadDevices = API_Device + "UploadDevices";
        /// <summary>
        ///  4.2 修改设备
        /// </summary>
        public static string UpdateDevice = API_Device + "UpdateDevice";
        /// <summary>
        ///  4.3 删除场景
        /// </summary>
        public static string DeleteScene = API_Device + "DeleteScene";
        /// <summary>
        ///  4.4 获取场景列表
        /// </summary>
        public static string GetSceneList = API_Device + "GetSceneList";
        /// <summary>
        ///  4.5 删除设备
        /// </summary>
        public static string DeleteDevice = API_Device + "DeleteDevice";
        /// <summary>
        ///  4.6 添加场景
        /// </summary>
        public static string AddScene = API_Device + "AddScene";
        /// <summary>
        ///  4.7 编辑
        /// </summary>
        public static string EditScene = API_Device + "EditScene";
        /// <summary>
        ///  4.8 绑定场景目标设备
        /// </summary>
        public static string AddSceneObjective = API_Device + "AddSceneObjective";
        /// <summary>
        ///  4.9 获取设备列表
        /// </summary>
        public static string GetDeviceList = API_Device + "GetDeviceList";
        /// <summary>
        ///  4.10 解除绑定场景目标设备
        /// </summary>
        public static string UnBindSceneObj = API_Device + "UnBindSceneObj";
 
        /// <summary>
        ///  4.11 同时添加场景 和 设备
        /// </summary>
        public static string AddSceneAndDeviceList = API_Device + "AddSceneAndDeviceList";
 
 
        #endregion
        #region EmqMqtt 部分
        //***************************EmqMqtt 部分********************************
        public static string API_EmqMqtt = "/EmqMqtt/";
 
        /// <summary>
        ///  5.03 获取分享者Mqtt远程控制信息(Emq版本)
        /// </summary>
        public static string ShareMemberConnMqttInfo = API_EmqMqtt + "ShareMemberConnMqttInfo";
 
        /// <summary>
        /// 客户端获取连接云端Mqtt信息
        /// Connection
        /// </summary>
        public static string GetConnMqttInfo = API_EmqMqtt + "GetConnMqttInfo";
 
 
        #endregion
 
 
    }
 
 
 
    /// <summary>
    /// 上传大文件手动备份
    /// </summary>
    [System.Serializable]
    public class UploadHomeAppGatewaySubFilesBigObj : BaseAccountCtrlObj
    {
 
        /// <summary>
        /// 备份名的Id
        /// </summary>
        public string BackupClassId;
 
        /// <summary>
        /// ManualBackupType 手动备份类型(0:App手动备份,2:网关手动备份,4:公共备份)  默认值: 0
        /// </summary>
        public int ManualBackupType = 0;
 
        /// <summary>
        /// 所上传的文件名(文件内容请通过写入http body里) 
        /// </summary>
        public string FileName;
    }
}