public static VisitorInfo FromVisitor(Visitor v) { var info = new VisitorInfo { SegmentName = v.Segment != null ? v.Segment.Name : null }; info.SetValuesFromObject(v); return(info); }
public static RequestInfo FromVisit(Request request) { var info = new RequestInfo(); info.SetValuesFromObject(request); info.EndVisit = request.EndVisit; info.Visit = VisitInfo.FromVisit(request.Visit); info.Visitor = VisitorInfo.FromVisitor(request.Visit.Visitor); return(info); }