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