using System; using System.Collections.Generic; using Shared.SimpleControl; namespace Shared { [System.Serializable] public class AccountListDB { string accountFile = "AccountListDB"; public List account = new List (); public void SaveAccountListDB () { IO.FileUtils.WriteFileByBytes (accountFile, GetAccountListDBBytes ()); } byte [] GetAccountListDBBytes () { return CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (this)); } /// /// The dic account user info. /// public Dictionary AccountInfo = new Dictionary (); } [System.Serializable] public class AccountInfo { string aesPassword = ""; /// /// 账号密码信息 /// public string Password { get { return Shared.Securitys.EncryptionService.AesDecryptTopic (aesPassword, "HDL85521566HDLON"); } set { aesPassword = Shared.Securitys.EncryptionService.AesEncryptTopic (value, "HDL85521566HDLON"); } } /// /// The user info. /// public UserInfo UserInfo = new UserInfo (); /// /// 账号下的住宅列表信息 /// public List RegionList = new List (); } }