| | |
| | | /// <summary>
|
| | | /// 是否是子账号进行操作
|
| | | /// </summary>
|
| | | public bool IsOtherAccountCtrl = Common.Config.Instance.isAdministrator;
|
| | | public bool IsOtherAccountCtrl = Common.Config.Instance.Home.IsOthreShare;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <summary>
|
| | | /// DistributedMark
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string DistributedMark = string.Empty;
|
| | | /// <summary>
|
| | | /// 邮箱
|
| | |
| | | /// </summary>
|
| | | public string AuthorityText = string.Empty;
|
| | | /// <summary>
|
| | | /// 用户图标文件
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string UserIconFile = string.Empty;
|
| | | /// <summary>
|
| | | /// 用户图标文件是否改变
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public bool UserIconFileChanged = false;
|
| | | /// <summary>
|
| | | /// 用户头像数据(临时用,会置空)
|
| | | /// </summary>
|
| | | public byte[] HeadImage = null;
|
| | |
| | | /// 密码验证(临时用,会置空)
|
| | | /// </summary>
|
| | | public string StringPwd = string.Empty;
|
| | |
|
| | |
|
| | | /// <summary>
|
| | | /// 用户图标文件
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string UserIconFile = string.Empty;
|
| | | /// <summary>
|
| | | /// 用户图标文件是否改变
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public bool UserIconFileChanged = false;
|
| | | /// <summary>
|
| | | /// 是否初始化用户信息成功
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public bool InitUserInfoSuccess = false;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// 用户名
|
| | | /// </summary>
|
| | | public string UserName = string.Empty;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 昵称信息
|
| | | /// </summary>
|
| | | public class NicknameInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 昵称
|
| | | /// </summary>
|
| | | public string nickname = string.Empty;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// AccountType
|
| | | /// </summary> |
| | | public int AccountType = 0;
|
| | | /// <summary>
|
| | | /// 是否拥有远程控制权限
|
| | | /// </summary>
|
| | | public bool IsAllowRemoteCtrl = false;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// 固件分布式唯一,也是下载时的[下载固件的唯一标识]参数
|
| | | /// </summary>
|
| | | public string DistributedMark = string.Empty;
|
| | | /// <summary>
|
| | | /// 日期(后面追加的 utc时间)
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// 镜像类型
|
| | | /// </summary>
|
| | | public string ImagType = string.Empty;
|
| | | /// <summary>
|
| | | /// 日期(后面追加的 utc时间)
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <summary>
|
| | | /// Page
|
| | | /// </summary>
|
| | | public int Page = 0;
|
| | | public int Page = 1;
|
| | | /// <summary>
|
| | | /// PageSize
|
| | | /// </summary>
|
| | |
| | | public double Latitude = 0;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region ■ 消息管理类__________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 获取消息记录的请求参数
|
| | | /// </summary>
|
| | | public class MessageInfoPra : IfacePraCommon
|
| | | {
|
| | | /// <summary>
|
| | | /// RequestVersion
|
| | | /// </summary>
|
| | | public string RequestVersion = Common.CommonPage.RequestVersion;
|
| | | /// <summary>
|
| | | /// LoginAccessToken
|
| | | /// </summary>
|
| | | public string LoginAccessToken = Common.Config.Instance.Token;
|
| | | /// <summary>
|
| | | /// ZigbeeHomeId
|
| | | /// </summary>
|
| | | public string HomeId = Common.Config.Instance.Home.Id;
|
| | | /// <summary>
|
| | | /// 主题
|
| | | /// </summary>
|
| | | public string Topic = null;
|
| | | /// <summary>
|
| | | /// 开始时间
|
| | | /// </summary>
|
| | | public string BeginTime = null;
|
| | | /// <summary>
|
| | | /// 结束时间
|
| | | /// </summary>
|
| | | public string EndTime = null;
|
| | | /// <summary>
|
| | | /// 页数
|
| | | /// </summary>
|
| | | public PageSettingInfo PageSetting = new PageSettingInfo();
|
| | |
|
| | | public MessageInfoPra()
|
| | | {
|
| | | PageSetting.PageSize = 50;
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 消息中心的结果返回值
|
| | | /// </summary>
|
| | | public class MessageCentetInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 列表数据
|
| | | /// </summary>
|
| | | public List<MessageRecordInfo> PageData = null;
|
| | | /// <summary>
|
| | | /// PageIndex
|
| | | /// </summary>
|
| | | public int PageIndex = 0;
|
| | | /// <summary>
|
| | | /// PageSize
|
| | | /// </summary>
|
| | | public int PageSize = 0;
|
| | | /// <summary>
|
| | | /// TotalCount
|
| | | /// </summary>
|
| | | public int TotalCount = 0;
|
| | | /// <summary>
|
| | | /// TotalPages
|
| | | /// </summary>
|
| | | public int TotalPages = 0;
|
| | | /// <summary>
|
| | | /// HasPreviousPage
|
| | | /// </summary>
|
| | | public bool HasPreviousPage = false;
|
| | | /// <summary>
|
| | | /// HasNextPage
|
| | | /// </summary>
|
| | | public bool HasNextPage = false;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 信息结果
|
| | | /// </summary>
|
| | | public class MessageRecordInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 主键
|
| | | /// </summary>
|
| | | public string Id = string.Empty;
|
| | | /// <summary>
|
| | | /// 主题
|
| | | /// </summary>
|
| | | public string Topic = string.Empty;
|
| | | /// <summary>
|
| | | /// 网关上报的json
|
| | | /// </summary>
|
| | | public string PayloadJson = string.Empty;
|
| | | /// <summary>
|
| | | /// 是否已读
|
| | | /// </summary>
|
| | | public bool IsReading = false;
|
| | | /// <summary>
|
| | | /// 时间 2019-09-10T13:11:55
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | | /// <summary>
|
| | | /// 图片地址
|
| | | /// </summary>
|
| | | public string IconPath = string.Empty;
|
| | | /// <summary>
|
| | | /// 消息类型
|
| | | /// </summary>
|
| | | public string MsgObjectText = string.Empty;
|
| | | /// <summary>
|
| | | /// 消息文本
|
| | | /// </summary>
|
| | | public string MsgText = string.Empty;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设置消息已读状态的启动参数
|
| | | /// </summary>
|
| | | public class MessageReadStatuPra : IfacePraCommon
|
| | | {
|
| | | /// <summary>
|
| | | /// RequestVersion
|
| | | /// </summary>
|
| | | public string RequestVersion = Common.CommonPage.RequestVersion;
|
| | | /// <summary>
|
| | | /// LoginAccessToken
|
| | | /// </summary>
|
| | | public string LoginAccessToken = Common.Config.Instance.Token;
|
| | | /// <summary>
|
| | | /// ZigbeeHomeId
|
| | | /// </summary>
|
| | | public string HomeId = Common.Config.Instance.Home.Id;
|
| | | /// <summary>
|
| | | /// ID
|
| | | /// </summary>
|
| | | public string Id = string.Empty;
|
| | | /// <summary>
|
| | | /// 已读状态
|
| | | /// </summary>
|
| | | public bool IsReading = true;
|
| | | /// <summary>
|
| | | /// 0:标记全部已读、1:清空所有消息
|
| | | /// </summary>
|
| | | public int TagAllOrClearType = 0;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 隐匿功能类__________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 隐匿功能
|
| | | /// </summary>
|
| | | public class HideOptionInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 是否显示主页隐藏菜单(Debug用): 1 -> 显示
|
| | | /// </summary>
|
| | | public int CenterHideMenu = 0;
|
| | | /// <summary>
|
| | | /// 是否出力详细Log 1 -> 出力
|
| | | /// </summary>
|
| | | public int DetailedLog = 0;
|
| | | /// <summary>
|
| | | /// 显示设备历史版本 1 -> 显示
|
| | | /// </summary>
|
| | | public int DeviceHistory = 0;
|
| | | }
|
| | | #endregion
|
| | | }
|