| | |
| | | [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 |
| | |
| | | /// <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 |
| | |
| | | return (DateTime.Now - LoginDateTime).Days < 7; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 账户登录成功的账户类型 |
| | | /// </summary> |
| | | public int AccountType = 0; |
| | | /// <summary> |
| | | /// 账户登录成功的主ID |
| | | /// </summary> |
| | | public int MasterID = 0; |
| | | |
| | | |
| | | public static void ReFresh() |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | /// <summary> |
| | | /// 账户登录成功的账户类型(此变量默认为0,并且不赋值) |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int AccountType = 0;
|
| | | /// <summary> |
| | | /// 当前登录的帐号 |
| | | /// </summary> |
| | |
| | | /// 当前登录的账号是不是之前的账号
|
| | | /// </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 |
| | |
| | | } |
| | | |
| | | /// <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> |