Ejemplo n.º 1
0
 public static DomainItineraryItem ToDomainItineraryItem(TriposoItineraryItem it)
 {
     return(new DomainItineraryItem
     {
         ItineraryItemId = Guid.NewGuid().ToString(),
         Description = it.Description,
         Title = it.Title,
         Poi = PoiConverter.ToDomainPoi(it.Poi)
     });
 }
Ejemplo n.º 2
0
 public static DomainWayPoint ToDomainWayPoint(TriposoWayPoint point)
 {
     return(new DomainWayPoint
     {
         WayPointId = Guid.NewGuid().ToString(),
         Latitude = point.Coordinates.Latitude,
         Longitude = point.Coordinates.Longitude,
         Poi = PoiConverter.ToDomainPoi(point.Poi),
         VisitTime = point.VisitTime,
         WalkToNextDistance = point.WalkToNextDistance,
         WalkToNextDuration = point.WalkToNextDuration
     });
 }