UpdateData.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. using InitializerModel;
  2. using PhihongEv.Lib;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace AwInitilizer.Model
  10. {
  11. public class UpdateData : ObservableObject
  12. {
  13. private SystemID _SystemID;
  14. public SystemID SystemID {
  15. get => _SystemID;
  16. set => SetProperty(ref _SystemID, value);
  17. }
  18. private string _ModelName;
  19. public string ModelName {
  20. get => _ModelName;
  21. set => SetProperty(ref _ModelName, value);
  22. }
  23. private string _SerialNumber;
  24. public string SerialNumber
  25. {
  26. get => _SerialNumber;
  27. set => SetProperty(ref _SerialNumber, value);
  28. }
  29. private string _FourGenModuleVersion;
  30. public string FourGenModuleVersion
  31. {
  32. get => _FourGenModuleVersion;
  33. set => SetProperty(ref _FourGenModuleVersion, value);
  34. }
  35. private string _SubFourGenModuleVersion;
  36. public string SubFourGenModuleVersion
  37. {
  38. get => _SubFourGenModuleVersion;
  39. set => SetProperty(ref _SubFourGenModuleVersion, value);
  40. }
  41. private bool _IsSimInsert;
  42. public bool IsSimInsert
  43. {
  44. get => _IsSimInsert;
  45. set => SetProperty(ref _IsSimInsert, value);
  46. }
  47. private string _SimICCID;
  48. public string SimICCID {
  49. get => _SimICCID;
  50. set
  51. {
  52. if (SetProperty(ref _SimICCID, value))
  53. {
  54. RaisePropertyChanged(nameof(UiSimICCID));
  55. }
  56. }
  57. }
  58. private string _SimIMSI;
  59. public string SimIMSI
  60. {
  61. get => _SimIMSI;
  62. set
  63. {
  64. if (SetProperty(ref _SimIMSI, value))
  65. {
  66. RaisePropertyChanged(nameof(UiSimIMSI));
  67. }
  68. }
  69. }
  70. private bool _IsSubSimInsert;
  71. public bool IsSubSimInsert
  72. {
  73. get => _IsSubSimInsert;
  74. set => SetProperty(ref _IsSubSimInsert, value);
  75. }
  76. private string _SubSimICCID;
  77. public string SubSimICCID
  78. {
  79. get => _SubSimICCID;
  80. set
  81. {
  82. if (SetProperty(ref _SubSimICCID, value))
  83. {
  84. RaisePropertyChanged(nameof(UiSimICCID));
  85. }
  86. }
  87. }
  88. private string _SubSimIMSI;
  89. public string SubSimIMSI
  90. {
  91. get => _SubSimIMSI;
  92. set
  93. {
  94. if (SetProperty(ref _SubSimIMSI, value))
  95. {
  96. RaisePropertyChanged(nameof(UiSimIMSI));
  97. }
  98. }
  99. }
  100. public string UiSimICCID => string.IsNullOrEmpty(SubSimICCID) ? SimICCID : $"{SimICCID}/{SubSimICCID}";
  101. public string UiSimIMSI => string.IsNullOrEmpty(SubSimIMSI) ? SimIMSI : $"{SimIMSI}/{SubSimIMSI}";
  102. private ButtonTestModeType _ButtonTestMode;
  103. public ButtonTestModeType ButtonTestMode
  104. {
  105. get => _ButtonTestMode;
  106. set => SetProperty(ref _ButtonTestMode, value);
  107. }
  108. //private bool _SkipEmergencyButton;
  109. //public bool SkipEmergencyButton
  110. //{
  111. // get => _SkipEmergencyButton;
  112. // set
  113. // {
  114. // if (_SkipEmergencyButton != value)
  115. // {
  116. // _SkipEmergencyButton = value;
  117. // RaisePropertyChanged("SkipEmergencyButton");
  118. // }
  119. // }
  120. //}
  121. //private bool _SkipButtonTest;
  122. //public bool SkipButtonTest
  123. //{
  124. // get => _SkipButtonTest;
  125. // set
  126. // {
  127. // if (_SkipButtonTest != value)
  128. // {
  129. // _SkipButtonTest = value;
  130. // RaisePropertyChanged("SkipButtonTest");
  131. // }
  132. // }
  133. //}
  134. private string _IpAddress;
  135. public string IpAddress
  136. {
  137. get => _IpAddress;
  138. set => SetProperty(ref _IpAddress, value);
  139. }
  140. private bool _IsDisableAuthRequired;
  141. public bool IsDisableAuthRequired
  142. {
  143. get => _IsDisableAuthRequired;
  144. set => SetProperty(ref _IsDisableAuthRequired, value);
  145. }
  146. private bool _IsIdleCheckPass;
  147. public bool IsIdleCheckPass
  148. {
  149. get => _IsIdleCheckPass;
  150. set => SetProperty(ref _IsIdleCheckPass, value);
  151. }
  152. private List<FirmwareUpdateModel> _FirmwareUpdateModels;
  153. public List<FirmwareUpdateModel> FirmwareUpdateModels
  154. {
  155. get => _FirmwareUpdateModels;
  156. set => SetProperty(ref _FirmwareUpdateModels, value);
  157. }
  158. private List<FirmwareUpdateModel> _PreFlashFirmwareUpdateModels;
  159. public List<FirmwareUpdateModel> PreFlashFirmwareUpdateModels
  160. {
  161. get => _PreFlashFirmwareUpdateModels;
  162. set => SetProperty(ref _PreFlashFirmwareUpdateModels, value);
  163. }
  164. }
  165. }