aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs
deleted file mode 100644
index 5692ccce9..000000000
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Settings;
-using Tango.Transport.Web;
-
-namespace Tango.PPC.Common.Update
-{
- public class PPCUpdateService : IPPCUpdateService
- {
- private WebTransportClient _client;
-
- public PPCUpdateService()
- {
- _client = new WebTransportClient();
- }
-
- private String GetAddress()
- {
- return SettingsManager.Default.GetOrCreate<PPCSettings>().GetMachineServiceAddress() + "/api/PPC/";
- }
-
- public Task<UploadVersionResponse> UploadVersion(UploadVersionRequest request)
- {
- return _client.PostJson<UploadVersionRequest, UploadVersionResponse>(GetAddress() + "UploadVersion", request);
- }
-
- public Task<UploadCompletedResponse> NotifyUploadCompleted(UploadCompletedRequest request)
- {
- return _client.PostJson<UploadCompletedRequest, UploadCompletedResponse>(GetAddress() + "NotifyUploadCompleted", request);
- }
-
- public Task<LatestVersionResponse> GetLatestVersion(LatestVersionRequest request)
- {
- return _client.PostJson<LatestVersionRequest, LatestVersionResponse>(GetAddress() + "GetLatestVersion", request);
- }
-
- public Task<MachineVersionsResponse> GetMachineVersions()
- {
- return _client.PostJson<MachineVersionsRequest, MachineVersionsResponse>(GetAddress() + "GetMachineVersions", new MachineVersionsRequest());
- }
- }
-}