public RouteStop(PublicStopPoint stopPoint, DateTime time, string routeColour, string routeName, Visibility arrivalVisibility, Visibility departureVisibility, Visibility intermediateVisibility) { this.StopPoint = stopPoint; this.Time = time.ToLocalTime(); this.RouteColour = routeColour; this.RouteName = routeName; this.ArrivalVisibility = arrivalVisibility; this.DepartureVisibility = departureVisibility; this.IntermediateVisibility = intermediateVisibility; }
public void UpdateDistanceToAll(Coordinate userLocation) { if (userLocation == null) { throw new ArgumentNullException("userLocation"); } foreach (PublicStop publicStop in base.DbSet) { PublicStopPoint firstPoint = publicStop.StopPoints.FirstOrDefault(); if (firstPoint != null) { publicStop.DistanceFromUserLocationInMeters = (int)userLocation.DistanceToCoordinateInMetres(new Coordinate(firstPoint.Latitude, firstPoint.Longitude)); } } }
public static void Send(PublicStopPoint publicStopPoint) { new PointOnMapMessage(publicStopPoint).Send(); }
public PointOnMapMessage(PublicStopPoint publicStopPoint) { this.PublicStopPoint = publicStopPoint; this.Reason = PointOnMapMessageReason.PublicStopPoint; }