| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2015/12/29 17:19:57
- //Author
- //Description Create
- //----------------------------------------------------------------
- using System.Xml.Serialization;
- namespace Muchinfo.MTPClient.Update
- {
- public class UpdateInfo
- {
- public string Version { get; set; }////版本号
- /// <summary>
- /// 最近更新时间
- /// </summary>
- public DateTime LastModifyTime { get; set; }
- /// <summary>
- /// 更新URL
- /// </summary>
- public string UpdateUrl { get; set; }
- /// <summary>
- /// 更新完成后是否重启交易端
- /// </summary>
- public bool ReStart { get; set; }
-
- /// <summary>
- /// 要启动的APP程序
- /// </summary>
- public string StartAppName { get; set; }
- /// <summary>
- /// 是否压缩
- /// </summary>
- public bool IsCompress { get; set; }
- /// <summary>
- /// 会员资源文件夹
- /// </summary>
- public string ResourceDir { get; set; }
- /// <summary>
- /// 更新的文件列表
- /// </summary>
- public List<UpdateFile> UpdateFiles { get; set; }
-
- }
- /// <summary>
- /// 更新文件名
- /// </summary>
- public class UpdateFile
- {
- public UpdateFile()
- {
-
- }
- public UpdateFile(string filePath, string extension, string md5Code)
- {
- FilePath = filePath;
- MD5Code = md5Code;
- Extension = extension;
- }
- /// <summary>
- /// 文件名相对取主程序的路径
- /// </summary>
- public string FilePath { get; set; }
- /// <summary>
- /// 文件的扩展名
- /// </summary>
- public string Extension { get; set; }
- /// <summary>
- /// 文件MD5
- /// </summary>
- public string MD5Code { get; set; }
- /// <summary>
- /// 当前文件夹
- /// </summary>
- // public string Directory { get; set; }
- /// <summary>
- /// 是否为更新配置文件
- /// </summary>
- public bool IsConfig { get; set; }
- }
- }
|