aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-17 19:50:32 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-17 19:50:32 +0300
commit4fcf044cc0a4265f6c9c2aad2a3a7aad92eafefa (patch)
treea3b146dadddc5bd67350ee837af0499c53308478 /Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs
parentd150ca010285dc76add9d9f5606dd6d150a610c5 (diff)
downloadTango-4fcf044cc0a4265f6c9c2aad2a3a7aad92eafefa.tar.gz
Tango-4fcf044cc0a4265f6c9c2aad2a3a7aad92eafefa.zip
Telemetry Logs & Events.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs')
-rw-r--r--Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs b/Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs
new file mode 100644
index 000000000..02969d5e3
--- /dev/null
+++ b/Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.BL.Entities;
+using Tango.Telemetry.Telemetries;
+
+namespace Tango.Telemetry.Mappers
+{
+ public class EventMapper
+ {
+ public static TelemetryEvent MapEvent(MachinesEvent ev)
+ {
+ TelemetryEvent t = new TelemetryEvent();
+ t.ID = ev.Guid;
+ t.Time = ev.DateTime;
+ t.HostName = ev.HostName;
+ t.EventTypeGuid = ev.EventTypeGuid;
+ t.Description = ev.Description;
+
+ return t;
+ }
+ }
+}