aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/Mappers/EventMapper.cs
blob: 02969d5e364dbaf0d1b324d0beb571fb543dbd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
        }
    }
}