UpdateInfo.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. //----------------------------------------------------------------
  8. //Module Name: $safeprojectname$
  9. //Purpose:
  10. //CopyRight: Muchinfo
  11. //History:
  12. //----------------------------------------------------------------
  13. //DateTime 2015/12/29 17:19:57
  14. //Author
  15. //Description Create
  16. //----------------------------------------------------------------
  17. using System.Xml.Serialization;
  18. namespace Muchinfo.MTPClient.Update
  19. {
  20. public class UpdateInfo
  21. {
  22. public string Version { get; set; }////版本号
  23. /// <summary>
  24. /// 最近更新时间
  25. /// </summary>
  26. public DateTime LastModifyTime { get; set; }
  27. /// <summary>
  28. /// 更新URL
  29. /// </summary>
  30. public string UpdateUrl { get; set; }
  31. /// <summary>
  32. /// 更新完成后是否重启交易端
  33. /// </summary>
  34. public bool ReStart { get; set; }
  35. /// <summary>
  36. /// 要启动的APP程序
  37. /// </summary>
  38. public string StartAppName { get; set; }
  39. /// <summary>
  40. /// 是否压缩
  41. /// </summary>
  42. public bool IsCompress { get; set; }
  43. /// <summary>
  44. /// 会员资源文件夹
  45. /// </summary>
  46. public string ResourceDir { get; set; }
  47. /// <summary>
  48. /// 更新的文件列表
  49. /// </summary>
  50. public List<UpdateFile> UpdateFiles { get; set; }
  51. }
  52. /// <summary>
  53. /// 更新文件名
  54. /// </summary>
  55. public class UpdateFile
  56. {
  57. public UpdateFile()
  58. {
  59. }
  60. public UpdateFile(string filePath, string extension, string md5Code)
  61. {
  62. FilePath = filePath;
  63. MD5Code = md5Code;
  64. Extension = extension;
  65. }
  66. /// <summary>
  67. /// 文件名相对取主程序的路径
  68. /// </summary>
  69. public string FilePath { get; set; }
  70. /// <summary>
  71. /// 文件的扩展名
  72. /// </summary>
  73. public string Extension { get; set; }
  74. /// <summary>
  75. /// 文件MD5
  76. /// </summary>
  77. public string MD5Code { get; set; }
  78. /// <summary>
  79. /// 当前文件夹
  80. /// </summary>
  81. // public string Directory { get; set; }
  82. /// <summary>
  83. /// 是否为更新配置文件
  84. /// </summary>
  85. public bool IsConfig { get; set; }
  86. }
  87. }