| | 1 | | using System.Collections.Generic; |
| | 2 | | using Itinero.Instructions.Types; |
| | 3 | |
|
| | 4 | | namespace Itinero.Instructions; |
| | 5 | |
|
| | 6 | | /// <summary> |
| | 7 | | /// Represents a single turn-by-turn instructions and it's textual representation in one or more languages. |
| | 8 | | /// This is a wrapper around a BaseInstruction <see cref="BaseInstruction"/> and how it can be translated |
| | 9 | | /// </summary> |
| | 10 | | public class Instruction |
| | 11 | | { |
| 4 | 12 | | public Instruction(BaseInstruction baseInstruction, IReadOnlyDictionary<string, string> text) |
| 4 | 13 | | { |
| 4 | 14 | | this.BaseInstruction = baseInstruction; |
| 4 | 15 | | this.Text = text; |
| 4 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The base instruction, the details about the type manoeuvre to make. |
| | 20 | | /// </summary> |
| 10 | 21 | | public BaseInstruction BaseInstruction { get; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The textual representation of the instruction for a user to follow. |
| | 25 | | /// </summary> |
| 5 | 26 | | public IReadOnlyDictionary<string, string> Text { get; } |
| | 27 | | } |