Beispiel #1
0
        public static Trip Create(Guid tripId, TripJsonWrapper trip)
        {
            if (trip == null)
            {
                throw new ArgumentNullException("trip");
            }

            return(new Trip(tripId, ModelFactory.Create(trip.BoundingBoxTopLeft), ModelFactory.Create(trip.BoundingBoxBottomRight), ModelFactory.Create(trip.Routes)));
        }
Beispiel #2
0
        public static Trip BuildTripResult(Guid tripId, TripJsonWrapper tripJsonWrapper)
        {
            if (tripJsonWrapper == null)
            {
                throw new ArgumentNullException("tripJsonWrapper");
            }

            return(ModelFactory.Create(tripId, tripJsonWrapper));
        }