1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using Shared.SimpleControl;
 
namespace Shared
{
    [System.Serializable]
    public class AccountListDB
    {
 
        public List<string> account = new List<string> ();
 
        string accountFile = "AccountListDB";
 
 
        public void SaveAccountListDB ()
        {
            IO.FileUtils.WriteFileByBytes (accountFile, GetAccountListDBBytes ());
        }
 
        byte [] GetAccountListDBBytes ()
        {
            return CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (this));
        }
    }
}