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