黄学彪
2020-07-06 f23ad1b3f9f6193f35f72104d690b21dc67d5c1f
ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs
@@ -6,8 +6,9 @@
    [System.Serializable]
    public class Config
    {
        static readonly string fileName = "Config.json";
        static Config config;
        private const string fileName = "Config.json";
        private static Config config = null;
        public static Config Instance
        {
            get
@@ -28,11 +29,11 @@
        /// <summary>
        /// 账户登录成功时的时间
        /// </summary>
        public DateTime LoginDateTime = DateTime.MinValue;
        public DateTime LoginDateTime = DateTime.MinValue;
        /// <summary>
        /// Gets a value indicating whether this <see cref="T:Shared.Common.Config"/> is login.
        ///
        /// </summary>
        /// <value><c>true</c> if is login; otherwise, <c>false</c>.</value>
        [Newtonsoft.Json.JsonIgnore]
        public bool IsLogin
        {
            get
@@ -40,16 +41,6 @@
                return (DateTime.Now - LoginDateTime).Days < 7;
            }
        }
        /// <summary>
        /// 账户登录成功的账户类型
        /// </summary>
        public int AccountType = 0;
        /// <summary>
        /// 账户登录成功的主ID
        /// </summary>
        public int MasterID = 0;
        public static void ReFresh()
        {
@@ -67,6 +58,11 @@
            }
        }
        /// <summary>
        /// 账户登录成功的账户类型(此变量默认为0,并且不赋值)
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int AccountType = 0;
        /// <summary>
        /// 当前登录的帐号
        /// </summary>
@@ -105,12 +101,12 @@
        /// 当前登录的账号是不是之前的账号
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public bool TheSameLoginAccount = false;
        [Newtonsoft.Json.JsonIgnore]
        public bool TheSameLoginAccount = false;
        /// <summary>
        /// 当前帐号的Token
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public string Token
        {
            get
@@ -136,14 +132,18 @@
        }
        /// <summary>
        /// 登录时Token
        /// 登录时Token(目前这东西没用)
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public string LoginToken = string.Empty;
        public List<string> HomeFilePathList = new List<string> { };
        public string HomeId = string.Empty;
        /// <summary>
        /// 住宅文件列表
        /// </summary>
        public List<string> HomeFilePathList = new List<string>();
        [Newtonsoft.Json.JsonIgnore]
        private House m_Home = null;
        /// <summary>