| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using Itinero.Routes; |
| | | 3 | | |
| | | 4 | | namespace Itinero.Instructions; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Abstract representation of a route and generated instructions. |
| | | 8 | | /// </summary> |
| | | 9 | | public interface IRouteAndInstructions |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The route. |
| | | 13 | | /// </summary> |
| | | 14 | | Route Route { get; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The instructions per language. |
| | | 18 | | /// </summary> |
| | | 19 | | IReadOnlyList<Instruction> Instructions { get; } |
| | | 20 | | } |
| | | 21 | | |
| | | 22 | | internal class RouteAndInstructions : IRouteAndInstructions |
| | | 23 | | { |
| | 4 | 24 | | internal RouteAndInstructions(Route route, IReadOnlyList<Instruction> instructions) |
| | 4 | 25 | | { |
| | 4 | 26 | | this.Route = route; |
| | 4 | 27 | | this.Instructions = instructions; |
| | 4 | 28 | | } |
| | 6 | 29 | | public Route Route { get; } |
| | | 30 | | |
| | 2 | 31 | | public IReadOnlyList<Instruction> Instructions { get; } |
| | | 32 | | } |