Ejemplo n.º 1
0
 public VehicleActivityDTO(VehicleActivity TransDAL)
 {
     this.ID        = TransDAL.Id;
     this.VehicleId = TransDAL.VehicleId;
     this.EntryDate = TransDAL.EntryDate;
     this.Status    = TransDAL.Status;
 }
Ejemplo n.º 2
0
        private VehicleActivity DataToVehicleActivity(VehicleActivityXml data)
        {
            var vehicleActivity = new VehicleActivity()
            {
                ActivityDateTime = data.ActivityDateTime,
                Latitude         = data.Latitude.ToString("F"),
                Longitude        = data.Longitude.ToString("F"),
                GPSValid         = data.GPSValid,
                Location         = data.Location,
                HDG          = data.HDG,
                Speed        = data.Speed,
                EventSubType = data.EventSubType,
                ODOMeter     = data.ODOMeter,
                VehicleID    = data.VehicleID,
            };

            return(vehicleActivity);
        }