Esempio n. 1
0
 public void record(DataPersistManager persist)
 {
     if (persist != null)
     {
         mType = DataType.CRASH_TYPE;
         persist.AppendToLocalFileSystem(this, NO_ENCRYPT);
     }
 }
    //服务器上读取到了,写到文件里面,覆盖或追加写入
    private void saveTofile()
    {
        cachedlocal       = new NoticeLocal();
        cachedlocal.tips  = cached.ToArray();
        cachedlocal.mType = DataType.TIPS_CONFIG;

        if (maxValidate > 30)
        {
            persist.WriteToLocalFileSystem(cachedlocal, AES_ENCRYPT);
        }
        else
        {
            persist.AppendToLocalFileSystem(cachedlocal, AES_ENCRYPT);
        }
    }