| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | |
|
| | 4 | | namespace Itinero.Profiles; |
| | 5 | |
|
| | 6 | | /// <summary> |
| | 7 | | /// Extension methods related to profiles and router dbs. |
| | 8 | | /// </summary> |
| | 9 | | public static class RouterDbExtensions |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// Prepares the router db for use with the given profiles. |
| | 13 | | /// </summary> |
| | 14 | | /// <param name="routerDb">The router dbs.</param> |
| | 15 | | /// <param name="profiles">The profiles.</param> |
| | 16 | | public static void PrepareFor(this RouterDb routerDb, params Profile[] profiles) |
| 0 | 17 | | { |
| 0 | 18 | | routerDb.ProfileConfiguration.AddProfiles(profiles); |
| 0 | 19 | | } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// Prepares the router db for use with the given profiles. |
| | 23 | | /// </summary> |
| | 24 | | /// <param name="routerDb">The router dbs.</param> |
| | 25 | | /// <param name="profiles">The profiles.</param> |
| | 26 | | public static void PrepareFor(this RouterDb routerDb, IEnumerable<Profile> profiles) |
| 0 | 27 | | { |
| 0 | 28 | | routerDb.ProfileConfiguration.AddProfiles(profiles); |
| 0 | 29 | | } |
| | 30 | | } |