private FieldVisitInfo AppendMappedFieldVisitInfo(Channel channel, LocationInfo locationInfo) { var mapper = new FieldVisitMapper(channel, Location); var fieldVisitDetails = mapper.MapFieldVisitDetails(); Logger.Info($"Successfully parsed one visit '{fieldVisitDetails.FieldVisitPeriod}' for location '{locationInfo.LocationIdentifier}'"); return(Appender.AddFieldVisit(locationInfo, fieldVisitDetails)); }
public FieldVisitInfo Map(ArchivedVisit archivedVisit) { VisitIdentifier = $"{archivedVisit.Summary.StartTime:O}@{archivedVisit.Summary.LocationIdentifier}"; LocationInfo = Appender.GetLocationByIdentifier(archivedVisit.Summary.LocationIdentifier); var visit = Appender.AddFieldVisit(LocationInfo, Map(archivedVisit.Summary)); MapActivities(visit, archivedVisit.Activities); return(visit); }