diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-14 20:25:47 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-14 20:25:47 +0300 |
| commit | d37bc3c65acb6ab3e265c3d1560ed54f1693249d (patch) | |
| tree | cd30b91495eecec0b13defffc888156c5f90af24 /Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade | |
| parent | 8f738753289dcb7118162122c5404d2a02b305f7 (diff) | |
| download | Tango-d37bc3c65acb6ab3e265c3d1560ed54f1693249d.tar.gz Tango-d37bc3c65acb6ab3e265c3d1560ed54f1693249d.zip | |
FSE TUP/TFP.
Refactored progress with TangoProgress<T>
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade')
2 files changed, 16 insertions, 14 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteApplicationUpgradeResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteApplicationUpgradeResponse.cs index e818b1110..89f2b4e71 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteApplicationUpgradeResponse.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteApplicationUpgradeResponse.cs @@ -3,21 +3,22 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.Core; namespace Tango.PPC.Shared.RemoteUpgrade { public class StartRemoteApplicationUpgradeResponse { - public String Message { get; set; } - public bool IsIndeterminate { get; set; } - public double Progress { get; set; } - public double Maximum { get; set; } + public TangoProgress<double> Progress { get; set; } public StartRemoteApplicationUpgradeResponse() { - Message = "Initializing..."; - IsIndeterminate = true; - Maximum = 100; + Progress = new TangoProgress<double>() + { + Message = "Initializing...", + IsIndeterminate = true, + Maximum = 100 + }; } } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteFirmwareUpgradeResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteFirmwareUpgradeResponse.cs index b9c34c871..32fcd19c0 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteFirmwareUpgradeResponse.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/RemoteUpgrade/StartRemoteFirmwareUpgradeResponse.cs @@ -3,21 +3,22 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.Core; namespace Tango.PPC.Shared.RemoteUpgrade { public class StartRemoteFirmwareUpgradeResponse { - public String Message { get; set; } - public bool IsIndeterminate { get; set; } - public double Progress { get; set; } - public double Maximum { get; set; } + public TangoProgress<double> Progress { get; set; } public StartRemoteFirmwareUpgradeResponse() { - Message = "Initializing..."; - IsIndeterminate = true; - Maximum = 100; + Progress = new TangoProgress<double>() + { + Message = "Initializing...", + IsIndeterminate = true, + Maximum = 100 + }; } } } |
