UpdateState.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. namespace Microsoft.Samples.AppUpdater
  3. {
  4. [Serializable]
  5. public class UpdateState
  6. {
  7. private UpdatePhases _Phase;
  8. private bool _UpdateFailureEncoutered;
  9. private int _UpdateFailureCount;
  10. private string _DownloadSource = "";
  11. private string _DownloadDestination = "";
  12. private string _NewVersionDirectory = "";
  13. public UpdatePhases Phase
  14. {
  15. get
  16. {
  17. return _Phase;
  18. }
  19. set
  20. {
  21. _Phase = value;
  22. }
  23. }
  24. public bool UpdateFailureEncoutered
  25. {
  26. get
  27. {
  28. return _UpdateFailureEncoutered;
  29. }
  30. set
  31. {
  32. _UpdateFailureEncoutered = value;
  33. }
  34. }
  35. public int UpdateFailureCount
  36. {
  37. get
  38. {
  39. return _UpdateFailureCount;
  40. }
  41. set
  42. {
  43. _UpdateFailureCount = value;
  44. }
  45. }
  46. public string DownloadSource
  47. {
  48. get
  49. {
  50. return _DownloadSource;
  51. }
  52. set
  53. {
  54. _DownloadSource = value;
  55. }
  56. }
  57. public string DownloadDestination
  58. {
  59. get
  60. {
  61. return _DownloadDestination;
  62. }
  63. set
  64. {
  65. _DownloadDestination = value;
  66. }
  67. }
  68. public string NewVersionDirectory
  69. {
  70. get
  71. {
  72. return _NewVersionDirectory;
  73. }
  74. set
  75. {
  76. _NewVersionDirectory = value;
  77. }
  78. }
  79. }
  80. }