From e83090a37f55de0a454866d22df1f9f9c36567af Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 19 Aug 2025 14:53:17 +0300 Subject: Telemetry Checkpoints & Registration Messages. --- .../PPC/Tango.PPC.Common/Tango.PPC.Common.csproj | 8 ++++++- .../Web/TelemetryDeviceRegistrationRequest.cs | 13 +++++++++++ .../Web/TelemetryDeviceRegistrationResponse.cs | 14 ++++++++++++ .../Web/TelemetryGetCheckPointsRequest.cs | 14 ++++++++++++ .../Web/TelemetryGetCheckPointsResponse.cs | 19 ++++++++++++++++ .../Web/TelemetrySetCheckPointsRequest.cs | 26 ++++++++++++++++++++++ .../Web/TelemetrySetCheckPointsResponse.cs | 14 ++++++++++++ 7 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationRequest.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationResponse.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsRequest.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsResponse.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsRequest.cs create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsResponse.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj index 935a1e5d2..7c20d08f5 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj @@ -315,6 +315,12 @@ + + + + + + @@ -674,7 +680,7 @@ - + \ No newline at end of file diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationRequest.cs new file mode 100644 index 000000000..61dd53276 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationRequest.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetryDeviceRegistrationRequest : WebRequestMessage + { + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationResponse.cs new file mode 100644 index 000000000..6d2223abf --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryDeviceRegistrationResponse.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetryDeviceRegistrationResponse : WebResponseMessage + { + public String ConnectionString { get; set; } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsRequest.cs new file mode 100644 index 000000000..f2998da40 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsRequest.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetryGetCheckPointsRequest : WebRequestMessage + { + + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsResponse.cs new file mode 100644 index 000000000..ff167acc5 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetryGetCheckPointsResponse.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetryGetCheckPointsResponse : WebRequestMessage + { + public List Checkpoints { get; set; } + + public TelemetryGetCheckPointsResponse() + { + Checkpoints = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsRequest.cs new file mode 100644 index 000000000..2c2ea8e4a --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsRequest.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetryCheckPoint + { + public String SourceName { get; set; } + public DateTime Time { get; set; } + public int TotalCount { get; set; } + } + + public class TelemetrySetCheckPointsRequest : WebRequestMessage + { + public List Checkpoints { get; set; } + + public TelemetrySetCheckPointsRequest() + { + Checkpoints = new List(); + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsResponse.cs new file mode 100644 index 000000000..68d1411c6 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/TelemetrySetCheckPointsResponse.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Transport.Web; + +namespace Tango.PPC.Common.Web +{ + public class TelemetrySetCheckPointsResponse : WebResponseMessage + { + + } +} -- cgit v1.3.1