File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/ResidenceOption.cs |
| | |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Shared.Phone.UserCenter |
| | | namespace Shared.Phone |
| | | { |
| | | /// <summary> |
| | | /// 住宅的配置 |
| | |
| | | /// 是否使用安防快捷方式 |
| | | /// </summary> |
| | | public bool SafetyShortcut = false; |
| | | /// <summary> |
| | | /// 登陆权限编号-> 1:主账号自己(本人) 2:赋予管理员权限的成员 3:成员 |
| | | /// </summary> |
| | | public int AuthorityNo = 0; |
| | | /// <summary> |
| | | /// 登陆权限编号的翻译名:1:主账号自己(本人) 2:赋予管理员权限的成员 3:成员 |
| | | /// </summary> |
| | | public string AuthorityText = string.Empty; |
| | | /// <summary> |
| | | /// 在没有调用接口获取之前的登陆权限编号-> 1:主账号自己(本人) 2:赋予管理员权限的成员 3:成员 |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int OldAuthorityNo = 0; |
| | | /// <summary> |
| | | /// 安防报警信息记录一天内最大的报警数 |
| | | /// </summary> |
| | |
| | | public void Save() |
| | | { |
| | | //写入内容 |
| | | HdlFileLogic.Current.SaveFileContent(DirNameResourse.ResidenceOptionFile, this); |
| | | HdlFileLogic.Current.SaveFileContent(HdlFileNameResourse.ResidenceOptionFile, this); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <returns></returns> |
| | | public ResidenceOptionClass Load() |
| | | { |
| | | string fileName = DirNameResourse.ResidenceOptionFile; |
| | | string fileName = HdlFileNameResourse.ResidenceOptionFile; |
| | | if (System.IO.File.Exists(fileName) == false) |
| | | { |
| | | return new ResidenceOptionClass(); |