| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using Shared.SimpleControl; |
| | | |
| | | namespace Shared |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// BaseRequestObj |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class BaseRequestObj |
| | | { |
| | | public string RequestVersion = MainPage.RequestVersion; |
| | | |
| | | public string RequestSource = MainPage.RequestSource; |
| | | |
| | | public string LoginAccessToken; |
| | | |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class BaseNoTokenObj |
| | | { |
| | | public string RequestVersion = MainPage.RequestVersion; |
| | | |
| | | public string RequestSource = MainPage.RequestSource; |
| | | |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class PageSettingObj |
| | | { |
| | | public int Page = 1; |
| | | |
| | | public int PageSize = 50; |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class BaseReqDtoObj |
| | | { |
| | | public PageSettingObj PageSetting = new PageSettingObj(); |
| | | public string LoginAccessToken; |
| | | |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class BaseAccountCtrlObj: BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 是否是子账号进行操作 |
| | | /// </summary> |
| | | public bool IsOtherAccountCtrl = MainPage.IsAdministrator; |
| | | /// <summary> |
| | | /// 住宅ID |
| | | /// </summary> |
| | | public string HomeId; |
| | | |
| | | } |
| | | |
| | | #region 项目(住宅) |
| | | #region 2、备份 |
| | | |
| | | #region 1.21添加项目(住宅)[App(网关)手动备份]备注文件夹 |
| | | /// <summary> |
| | | /// 添加项目备份文件夹 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class AddHomeAppGatewayNameObj : BaseAccountCtrlObj |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 备份名 -->键名 : BackupName |
| | | /// </summary> |
| | | public string BackupName; |
| | | |
| | | /// <summary> |
| | | /// 网关的唯一Id(当ManualBackupType=2时,此值不能为空! |
| | | /// </summary> |
| | | public string GatewayUniqueId; |
| | | /// <summary> |
| | | /// ManualBackupType 手动备份类型(0:App手动备份,2:网关手动备份,4:公共备份) 默认值: 0 |
| | | /// </summary> |
| | | public int ManualBackupType = 0; |
| | | |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.22 上传[项目(住宅(App(网关)手动备份]子文件 |
| | | /// <summary> |
| | | /// 上传手动备份 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UploadHomeAppGatewaySubFilesObj : BaseAccountCtrlObj |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 备份名的Id |
| | | /// </summary> |
| | | public string BackupClassId; |
| | | |
| | | /// <summary> |
| | | /// ManualBackupType 手动备份类型(0:App手动备份,2:网关手动备份,4:公共备份) 默认值: 0 |
| | | /// </summary> |
| | | public int ManualBackupType = 0; |
| | | |
| | | /// <summary> |
| | | /// 备份文件列表 |
| | | /// </summary> |
| | | public List<FileInfoData> UploadSubFileLists = new List<FileInfoData> (); |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 文件数据 |
| | | /// </summary> |
| | | public class FileInfoData |
| | | { |
| | | /// <summary> |
| | | /// BackupFileName |
| | | /// </summary> |
| | | public string BackupFileName = string.Empty; |
| | | /// <summary> |
| | | /// BackupFileContent |
| | | /// </summary> |
| | | public byte [] BackupFileContent; |
| | | } |
| | | |
| | | |
| | | [System.Serializable] |
| | | public class UploadSubFileListsObj |
| | | { |
| | | |
| | | public string BackupFileName; |
| | | public byte[] BackupFileContent; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 1.23 删除App备份 |
| | | /// <summary> |
| | | /// 删除App备份 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DeleteAppBackupFileObj : BaseAccountCtrlObj |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 备份名的Id |
| | | /// </summary> |
| | | public string BackupClassId; |
| | | /// <summary> |
| | | /// 需要删除文件名的数组 (注意如果提交的文件名的数组中并不是你, 或者不存在的,则不执行删除) |
| | | /// </summary> |
| | | public List<string> DeleteFileNameLists; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.24 获取住宅备份数据_分页 |
| | | /// <summary> |
| | | /// 获取住宅备份数据_分页 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetHomeDataBackupPaggerObj : BaseAccountCtrlObj |
| | | { |
| | | public string BackupType = "0"; |
| | | public string GatewayUniqueId; |
| | | public PageSettingObj PageSetting = new PageSettingObj (); |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.25 获取备份文件不带数据_分页 |
| | | /// <summary> |
| | | /// 获取备份文件不带数据_分页 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetHomeDataBackupUploadListPaggerObj : BaseAccountCtrlObj |
| | | { |
| | | public bool IsGatewayAutoBackup = false; |
| | | public string GatewayUniqueId; |
| | | public string BackupClassId; |
| | | public PageSettingObj PageSetting = new PageSettingObj (); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 1.26 下载某一个备份数据文件 |
| | | /// <summary> |
| | | /// 下载某一个备份数据文件 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DownloadSomeDataBackupObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 下载的文件名称 |
| | | /// </summary> |
| | | public string BackupFileName; |
| | | /// <summary> |
| | | /// BackupClassId |
| | | /// </summary> |
| | | public string BackupClassId = ""; |
| | | /// <summary> |
| | | /// 当前获取是否为网关自动备份 |
| | | /// </summary> |
| | | public bool IsGatewayAutoBackup = false; |
| | | /// <summary> |
| | | /// ZigbeeUniqueId 网关的唯一Id 当IsGatewayBackup= true时,此参数必须提供 |
| | | /// </summary> |
| | | public string GatewayUniqueId = null; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region 1.27 删除项目 (住宅)各种备份文件夹 |
| | | /// <summary> |
| | | /// 删除项目 (住宅)各种备份文件夹 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DelHomeAppGatewayNameObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 备注名主键 |
| | | /// </summary> |
| | | public string BackupClassId; |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.28 更新项目(住宅)[App(网关)手动备份]备注名 |
| | | /// <summary> |
| | | /// 更新项目(住宅)[App(网关)手动备份]备注名 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UpdateHomeAppGatewayNameObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 更新备注名 |
| | | /// </summary> |
| | | public string BackupName; |
| | | /// <summary> |
| | | /// 备注名主键 |
| | | /// </summary> |
| | | public string BackupClassId; |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.29 项目 (住宅)下App自动备份 |
| | | /// <summary> |
| | | /// 项目 (住宅)下App自动备份 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class HomeAppAutoDataBackupObj : BaseAccountCtrlObj |
| | | { |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 6、绑定 |
| | | #region 1.61 绑定网关到项目(住宅) |
| | | /// <summary> |
| | | /// 绑定网关到项目(住宅) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class BindGatewayToHomeObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 网关ID列表 |
| | | /// </summary> |
| | | public List<string> BindGateways = new List<string> (); |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.62 解绑定网关到项目(住宅) |
| | | /// <summary> |
| | | /// 绑定网关到项目(住宅) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class ReleaseGatewayToHomeObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 网关ID列表 |
| | | /// </summary> |
| | | public List<string> BindGateways = new List<string> (); |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.63 获得某个帐号所有已绑定的网关分页 |
| | | /// <summary> |
| | | /// 获得某个帐号所有已绑定的网关分页 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetAllBindGatewarysPaggerObj : BaseNoTokenObj |
| | | { |
| | | /// <summary> |
| | | /// 项目(住宅)类型(0:Zigbee 1:Buspro、3:Knx |
| | | /// </summary> |
| | | public int HomeType = 1; |
| | | public BaseReqDtoObj ReqDto = new BaseReqDtoObj(); |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.64 获取某个住宅的网关分页 |
| | | /// <summary> |
| | | /// 获取某个住宅的网关分页 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetSingleHomeGatewayPaggerObj : BaseNoTokenObj |
| | | { |
| | | public GetSingleHomeReqDtoObj ReqDto = new GetSingleHomeReqDtoObj() ; |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class GetSingleHomeReqDtoObj : BaseAccountCtrlObj |
| | | { |
| | | /// <summary> |
| | | /// 搜索网关唯一标识 默认为null |
| | | /// </summary> |
| | | public string GatewayUniqueId; |
| | | |
| | | public PageSettingObj PageSetting = new PageSettingObj (); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region 1.65 UpdateMac |
| | | /// <summary> |
| | | /// UpdateMac 更新Mac(印度) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UpdateMacObj : BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 住宅Id |
| | | /// </summary> |
| | | public string HomeId; |
| | | public string OldMac; |
| | | public string NewMac; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region 8、项目(住宅) |
| | | #region AddHome 1.81项目(住宅) - 1、添加项目(住宅) |
| | | /// <summary> |
| | | /// 添加项目(住宅) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class AddHomeObj : BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 住宅区域名称 |
| | | /// </summary> |
| | | public string Name; |
| | | /// <summary> |
| | | /// 项目(住宅)类型(0:Zigbee 1:Buspro、3:Knx |
| | | /// </summary> |
| | | public int HomeType = 1; |
| | | } |
| | | #endregion |
| | | |
| | | #region DelHome 1.82删除项目(住宅) |
| | | /// <summary> |
| | | /// 删除项目(住宅) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DelHomeObj : BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 项目(住宅)Id -->键名 : HomeId |
| | | /// </summary> |
| | | public string HomeId; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #region EditHome 1.83编辑项目(住宅) |
| | | /// <summary> |
| | | /// 删除项目(住宅) |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class EditHomeObj : BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 项目(住宅)Id -->键名 : HomeId |
| | | /// </summary> |
| | | public string HomeId; |
| | | /// <summary> |
| | | /// 住宅区域名称 |
| | | /// </summary> |
| | | public string Name; |
| | | /// <summary> |
| | | /// 项目(住宅)类型(0:Zigbee 1:Buspro、3:Knx |
| | | /// </summary> |
| | | public int HomeType = 1; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #region AddHome 1.84 获取项目 (住宅)分页 |
| | | [System.Serializable] |
| | | public class GetHomePagerReqDtoObj: BaseReqDtoObj |
| | | { |
| | | public string Name; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取项目 (住宅)分页 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetHomePagerObj : BaseNoTokenObj |
| | | { |
| | | /// <summary> |
| | | /// 项目(住宅)类型(0:Zigbee 1:Buspro、3:Knx |
| | | /// </summary> |
| | | public int HomeType = 1; |
| | | public GetHomePagerReqDtoObj ReqDto = new GetHomePagerReqDtoObj (); |
| | | } |
| | | #endregion |
| | | |
| | | #region 1.85 获取控制分享项目 (住宅)请求信息 |
| | | /// <summary> |
| | | /// 获取控制分享项目 (住宅)请求信息 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GetSharedHomeApiControlObj : BaseRequestObj |
| | | { |
| | | /// <summary> |
| | | /// 分享者Id -->键名 : MainAccountId |
| | | /// </summary> |
| | | public string MainAccountId; |
| | | |
| | | /// <summary> |
| | | /// 分享者住宅Id -->键名 : SharedHid |
| | | /// </summary> |
| | | public string SharedHid; |
| | | |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region ZigbeeUsers |
| | | |
| | | #region 2.11 使用帐号密码登录 |
| | | /// <summary> |
| | | /// 使用帐号密码登录 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class LoginObj : BaseNoTokenObj |
| | | { |
| | | public string Account; |
| | | public string Password; |
| | | public int Company; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | ///Zigbee用户模块 |
| | | #region UpdatePassword 2.33修改密码 功能描述:修改当前账号的密码 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// 响应状态码 |
| | | //(1)Success 则调用此接口成功 |
| | | //(2)NewPasswordAndOldPasswordEqual 原密码和新密码相同 |
| | | //(3)OldPwdNoYes 原密码错误 |
| | | //(4)Fail 操作失败 |
| | | //(5)AccountNoExists 用户不存在 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UpdatePasswordObj:BaseNoTokenObj |
| | | { |
| | | public string OldPassword;// 原密码 string 是 |
| | | public string NewPassword;// 新密码 string 是 |
| | | } |
| | | |
| | | |
| | | |
| | | #region 2.314 检测帐号是否存在 |
| | | /// <summary> |
| | | /// 检测帐号是否存在 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DetectionAccountObj : BaseNoTokenObj |
| | | { |
| | | public string Account; |
| | | } |
| | | #endregion |
| | | |
| | | #region 2.320 注册 功能描述:用户手机和邮箱注册 |
| | | [System.Serializable] |
| | | public class YdRegisterAccountObj: BaseNoTokenObj |
| | | { |
| | | public string Account; |
| | | public string Password; |
| | | public string Language;//语言 (固定为:Chinese和English) string 是 |
| | | public string Contact; |
| | | public int Company; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region YdForgetPasswordObj 2.321 功能描述:忘记密码邮件形式 |
| | | [System.Serializable] |
| | | public class YdForgetPasswordObj:BaseNoTokenObj |
| | | { |
| | | public string Account;// 账号 string 是 |
| | | public int Company; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region BindSubAccount 2.322 功能描述:绑定子账号到项目 |
| | | [System.Serializable] |
| | | public class BindSubAccountObj : BaseNoTokenObj |
| | | { |
| | | public string SubAccount;// |
| | | /// <summary> |
| | | /// 住宅Id |
| | | /// </summary> |
| | | public string HouseDistributedMark; |
| | | /// <summary> |
| | | /// 是否允许子帐号远程控制 |
| | | /// </summary> |
| | | public bool IsAllowRemoteCtrl = true; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region DeletedSubAccount 2.323 功能描述:解除子账号和住宅的绑定 |
| | | [System.Serializable] |
| | | public class DeletedSubAccountObj : BaseNoTokenObj |
| | | { |
| | | public string SubAccount;// |
| | | /// <summary> |
| | | /// 住宅Id |
| | | /// </summary> |
| | | public string HouseDistributedMark; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region GetSubAccountByDistributedMark 2.324 功能描述:获取项目(住宅)下面的子账号 |
| | | [System.Serializable] |
| | | public class GetSubAccountByDistributedMarkObj : BaseNoTokenObj |
| | | { |
| | | /// <summary> |
| | | /// 住宅Id |
| | | /// </summary> |
| | | public string DistributedMark; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region Alexa设备管理 部分 |
| | | #region UploadDevices 1.31上传设备信息 功能描述:上传设备信息。 |
| | | ///// <summary> |
| | | ///// Need Authorizatin |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class UploadDevicesObj:AlexaDevice |
| | | //{ |
| | | |
| | | //} |
| | | |
| | | |
| | | public class AlexaDeviceObj:BaseNoTokenObj |
| | | { |
| | | public string DeviceName;// 设备名 string 是 |
| | | public string DeviceType;// 设别类型, 固定为 |
| | | public int SubnetID;// 子网号 int 是 |
| | | public int DeviceID;// 设备号 int 是 |
| | | public int LoopID;// 回路号 int 是 |
| | | public string MAC;// 需要绑定的一端口MAC码 string 是 |
| | | public string RegionID;// 住宅区域编号 Int 是 |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | |
| | | //********************************旧**************************************** |
| | | |
| | | //#region ON软件读取指定区域网关列表,方法名:GatewayListON 参数:RegionID 类型:int |
| | | ///// <summary> |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region Login 登录 功能描述:登录后获取访问令牌。 |
| | | [System.Serializable] |
| | | public class LoginObj |
| | | { |
| | | public string Account; |
| | | //#region Login 登录 功能描述:登录后获取访问令牌。 |
| | | //[System.Serializable] |
| | | //public class LoginObj |
| | | //{ |
| | | // public string Account; |
| | | |
| | | public string Password; |
| | | // public string Password; |
| | | |
| | | public int Company; |
| | | // public int Company; |
| | | |
| | | } |
| | | //} |
| | | |
| | | #endregion |
| | | //#endregion |
| | | |
| | | #region IsExistingAccount 验证账号是否被使用 功能描述:验证手机和邮箱是否被注册 |
| | | [System.Serializable] |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region SignIn 注册 功能描述:用户手机和邮箱注册 |
| | | [System.Serializable] |
| | | public class SignInObj |
| | | { |
| | | public string Account; |
| | | public string Password; |
| | | public string Language;//语言 (固定为:Chinese和English) string 是 |
| | | public string Contact; |
| | | public int Company; |
| | | } |
| | | //#region SignIn 注册 功能描述:用户手机和邮箱注册 |
| | | //[System.Serializable] |
| | | //public class SignInObj |
| | | //{ |
| | | // public string Account; |
| | | // public string Password; |
| | | // public string Language;//语言 (固定为:Chinese和English) string 是 |
| | | // public string Contact; |
| | | // public int Company; |
| | | //} |
| | | |
| | | #endregion |
| | | //#endregion |
| | | |
| | | #region SignPhone 功能描述:发送手机验证码 |
| | | [System.Serializable] |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region ForgetPassword 功能描述:根据账号类型发送验证方式(邮箱账号发送邮件,手机账号发送短信验证码) |
| | | [System.Serializable] |
| | | public class ForgetPasswordObj |
| | | { |
| | | public string Account;// 账号 string 是 |
| | | public int Company; |
| | | } |
| | | //#region ForgetPassword 功能描述:根据账号类型发送验证方式(邮箱账号发送邮件,手机账号发送短信验证码) |
| | | //[System.Serializable] |
| | | //public class ForgetPasswordObj |
| | | //{ |
| | | // public string Account;// 账号 string 是 |
| | | // public int Company; |
| | | //} |
| | | |
| | | #endregion |
| | | //#endregion |
| | | |
| | | #region ForgetPasswordAction 功能描述:忘记密码,手机号找回密码方法 |
| | | [System.Serializable] |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region UpdatePassword 1.8修改密码 功能描述:修改当前账号的密码 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UpdatePasswordObj |
| | | { |
| | | public string OldPassword;// 原密码 string 是 |
| | | public string Password;// 新密码 string 是 |
| | | } |
| | | //#region UpdatePassword 1.8修改密码 功能描述:修改当前账号的密码 |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class UpdatePasswordObj |
| | | //{ |
| | | // public string OldPassword;// 原密码 string 是 |
| | | // public string Password;// 新密码 string 是 |
| | | //} |
| | | #endregion |
| | | |
| | | #region UpdateUserInformation 1.9更新或设置用户基本信息 功能描述:修改或设置当前登录的用户基本信息 |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region SignSubAccount 1.13注册子账号 功能描述:当前登录账号注册子账号 |
| | | /// <summary> |
| | | /// Need Authorzation |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class SignSubAccountObj |
| | | { |
| | | public string Email;// 账号 string 是 |
| | | public string Password;// 密码 string 是 |
| | | public string Remark;// 备注 string 是 |
| | | } |
| | | #endregion |
| | | //#region SignSubAccount 1.13注册子账号 功能描述:当前登录账号注册子账号 |
| | | ///// <summary> |
| | | ///// Need Authorzation |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class SignSubAccountObj |
| | | //{ |
| | | // public string Email;// 账号 string 是 |
| | | // public string Password;// 密码 string 是 |
| | | // public string Remark;// 备注 string 是 |
| | | //} |
| | | //#endregion |
| | | |
| | | |
| | | #region EditSubAccount 1.14编辑子账号 功能描述:编辑子账号的备注和密码 |
| | |
| | | #endregion |
| | | |
| | | |
| | | #region RemoveSubAccount 1.15删除子账号 功能描述:删除子账号 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class RemoveSubAccountObj |
| | | { |
| | | public string Email; |
| | | } |
| | | #endregion |
| | | //#region RemoveSubAccount 1.15删除子账号 功能描述:删除子账号 |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class RemoveSubAccountObj |
| | | //{ |
| | | // public string Email; |
| | | //} |
| | | //#endregion |
| | | |
| | | |
| | | #region DisableDebug 1.16禁用调试账号 功能描述:禁用当前账号的调试账号 |
| | |
| | | #endregion |
| | | |
| | | |
| | | #region 关于区域的方法 |
| | | #region AddHome 1.23创建一个住宅区域 功能描述:创建一个用户住宅区域 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class AddHomeObj |
| | | { |
| | | /// <summary> |
| | | /// 住宅区域名称 |
| | | /// </summary> |
| | | public string Name; |
| | | } |
| | | //#region 关于区域的方法 |
| | | //#region AddHome 1.23创建一个住宅区域 功能描述:创建一个用户住宅区域 |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class AddHomeObj: BaseRequestObj |
| | | //{ |
| | | // /// <summary> |
| | | // /// 住宅区域名称 |
| | | // /// </summary> |
| | | // public string Name; |
| | | |
| | | // public string LoginAccessToken; |
| | | |
| | | //} |
| | | |
| | | [System.Serializable] |
| | | public class AddHomeAndGatewayByONObj |
| | | { |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region HomeList 1.24获取用户的住宅区域列表 功能描述:获取用户所有住宅区域的列表 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class HomeListObj |
| | | { |
| | | //#region HomeList 1.24获取用户的住宅区域列表 功能描述:获取用户所有住宅区域的列表 |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class HomeListObj |
| | | //{ |
| | | |
| | | } |
| | | #endregion |
| | | //} |
| | | //#endregion |
| | | |
| | | #region EditHome 1.25编辑住宅区域名称 功能描述:编辑住宅区域名称 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class EditHomeObj |
| | | { |
| | | public string Name;// 住宅区域名称 string 是 |
| | | public string Id;// 住宅区域编号 Int 是 |
| | | } |
| | | #endregion |
| | | #region EditMACByON 修改住宅绑定的mac |
| | | [System.Serializable] |
| | | public class EditMACByONObj |
| | | { |
| | | /// <summary> |
| | | /// 修改的新的mac |
| | | /// </summary> |
| | | public string MAC; |
| | | /// <summary> |
| | | /// mac 的id |
| | | /// </summary> |
| | | public int Id; |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class EditHomeObj |
| | | //{ |
| | | // public string Name;// 住宅区域名称 string 是 |
| | | // public string Id;// 住宅区域编号 Int 是 |
| | | //} |
| | | //#endregion |
| | | //#region EditMACByON 修改住宅绑定的mac |
| | | //[System.Serializable] |
| | | //public class EditMACByONObj |
| | | //{ |
| | | // /// <summary> |
| | | // /// 修改的新的mac |
| | | // /// </summary> |
| | | // public string MAC; |
| | | // /// <summary> |
| | | // /// mac 的id |
| | | // /// </summary> |
| | | // public int Id; |
| | | |
| | | } |
| | | [System.Serializable] |
| | | public class EditMACByHomeId |
| | | { |
| | | /// <summary> |
| | | /// 修改的新的mac |
| | | /// </summary> |
| | | public string MAC; |
| | | /// <summary> |
| | | /// Home 的id |
| | | /// </summary> |
| | | public string RegionID; |
| | | //} |
| | | //[System.Serializable] |
| | | //public class EditMACByHomeId |
| | | //{ |
| | | // /// <summary> |
| | | // /// 修改的新的mac |
| | | // /// </summary> |
| | | // public string MAC; |
| | | // /// <summary> |
| | | // /// Home 的id |
| | | // /// </summary> |
| | | // public string RegionID; |
| | | |
| | | public bool IsReBind; |
| | | // public bool IsReBind; |
| | | |
| | | } |
| | | #endregion |
| | | #region DeleteHome 1.26删除整个住宅区域 功能描述:删除整个住宅区域 |
| | | /// <summary> |
| | | /// Need Authorzation |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class DeleteHomeObj |
| | | { |
| | | public string Id;// 住宅区域编号 int 是 |
| | | } |
| | | #endregion |
| | | //} |
| | | ////#endregion |
| | | //#region DeleteHome 1.26删除整个住宅区域 功能描述:删除整个住宅区域 |
| | | ///// <summary> |
| | | ///// Need Authorzation |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class DeleteHomeObj |
| | | //{ |
| | | // public string Id;// 住宅区域编号 int 是 |
| | | //} |
| | | //#endregion |
| | | |
| | | #region UploadDevices 1.30上传网关设备 功能描述:上传网关信息 |
| | | /// <summary> |
| | |
| | | public string RegionID;// 住宅区域编号 int 是 |
| | | } |
| | | #endregion |
| | | #region UploadDevices 1.31上传设备信息 功能描述:上传设备信息。 |
| | | /// <summary> |
| | | /// Need Authorizatin |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class UploadDevicesObj |
| | | { |
| | | public AlexaDevice Device = new AlexaDevice(); |
| | | } |
| | | public class AlexaDevice |
| | | { |
| | | public string DeviceName;// 设备名 string 是 |
| | | public string DeviceType;// 设别类型, 固定为 |
| | | public int SubnetID;// 子网号 int 是 |
| | | public int DeviceID;// 设备号 int 是 |
| | | public int LoopID;// 回路号 int 是 |
| | | public string MAC;// 需要绑定的一端口MAC码 string 是 |
| | | public string RegionID;// 住宅区域编号 Int 是 |
| | | } |
| | | //#region UploadDevices 1.31上传设备信息 功能描述:上传设备信息。 |
| | | ///// <summary> |
| | | ///// Need Authorizatin |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class UploadDevicesObj |
| | | //{ |
| | | // public AlexaDevice Device = new AlexaDevice(); |
| | | //} |
| | | //public class AlexaDevice |
| | | //{ |
| | | // public string DeviceName;// 设备名 string 是 |
| | | // public string DeviceType;// 设别类型, 固定为 |
| | | // public int SubnetID;// 子网号 int 是 |
| | | // public int DeviceID;// 设备号 int 是 |
| | | // public int LoopID;// 回路号 int 是 |
| | | // public string MAC;// 需要绑定的一端口MAC码 string 是 |
| | | // public string RegionID;// 住宅区域编号 Int 是 |
| | | //} |
| | | |
| | | #endregion |
| | | //#endregion |
| | | #region GatewayList 1.32读取用户所有网关列表 功能描述:读取当前用户的所有一端口 |
| | | /// <summary> |
| | | /// Need Authorization |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class GatewayListObj |
| | | { |
| | | ///// <summary> |
| | | ///// Need Authorization |
| | | ///// </summary> |
| | | //[System.Serializable] |
| | | //public class GatewayListObj |
| | | //{ |
| | | |
| | | } |
| | | //} |
| | | [System.Serializable] |
| | | public class GatewayMACObj |
| | | { |
| | |
| | | #endregion |
| | | |
| | | #region 备份恢复数据 |
| | | /// <summary> |
| | | /// 添加备份目录 |
| | | /// </summary> |
| | | [Serializable] |
| | | public class AddFolderObj |
| | | { |
| | | /// <summary> |
| | | /// 区域ID |
| | | /// </summary> |
| | | public string LevelID ; |
| | | /// <summary> |
| | | /// 备份目录名称 |
| | | /// </summary> |
| | | public string Name; |
| | | ///// <summary> |
| | | ///// 添加备份目录 |
| | | ///// </summary> |
| | | //[Serializable] |
| | | //public class AddFolderObj |
| | | //{ |
| | | // /// <summary> |
| | | // /// 区域ID |
| | | // /// </summary> |
| | | // public string LevelID ; |
| | | // /// <summary> |
| | | // /// 备份目录名称 |
| | | // /// </summary> |
| | | // public string Name; |
| | | |
| | | } |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 获取区域下的备份列表目录 |
| | | /// </summary> |
| | | [Serializable] |
| | | public class GetUserFolderObj |
| | | { |
| | | /// <summary> |
| | | /// 区域ID |
| | | /// </summary> |
| | | public string LevelID; |
| | | } |
| | | ///// <summary> |
| | | ///// 获取区域下的备份列表目录 |
| | | ///// </summary> |
| | | //[Serializable] |
| | | //public class GetUserFolderObj |
| | | //{ |
| | | // /// <summary> |
| | | // /// 区域ID |
| | | // /// </summary> |
| | | // public string LevelID; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 备份文件夹里面的文件目录 |
| | |
| | | public int Id; |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 上传备份文件数据 |
| | | ///// </summary> |
| | | //[Serializable] |
| | | //public class AddUserBackupObj |
| | | //{ |
| | | // /// <summary> |
| | | // /// wenjian mingcheng |
| | | // /// </summary> |
| | | // public string Name; |
| | | // /// <summary> |
| | | // /// 文件数据 |
| | | // /// </summary> |
| | | // public byte [] DetailByte; |
| | | // /// <summary> |
| | | // /// 文件夹 ID |
| | | // /// </summary> |
| | | // public int LevelID; |
| | | //} |
| | | |
| | | ///// <summary> |
| | | ///// Delete backup data. |
| | | ///// </summary> |
| | | //[Serializable] |
| | | //public class DeleteFolderDataObj |
| | | //{ |
| | | // public int Id; |
| | | //} |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 上传备份文件数据 |
| | | /// 不是在本区域的登录响应,需要重定向到请求得到的域名下--RegionServer |
| | | /// </summary> |
| | | [Serializable] |
| | | public class AddUserBackupObj |
| | | public class UserLoginLocalRegionRes |
| | | { |
| | | public string RegionName; |
| | | /// <summary> |
| | | /// wenjian mingcheng |
| | | /// 请重定向到此域名下对应接口请求 |
| | | /// </summary> |
| | | public string Name; |
| | | /// <summary> |
| | | /// 文件数据 |
| | | /// </summary> |
| | | public byte [] DetailByte; |
| | | /// <summary> |
| | | /// 文件夹 ID |
| | | /// </summary> |
| | | public int LevelID; |
| | | public string RegionServer; |
| | | } |
| | | /// <summary> |
| | | /// Delete backup data. |
| | | /// </summary> |
| | | [Serializable] |
| | | public class DeleteFolderDataObj |
| | | { |
| | | public int Id; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |