diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs | 25 |
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; + } + } +} |
