-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from felsokning/feature/Bus_Éireann
Fix: Implementing Interface for DI for StopWrapper
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Felsökning.Ireland.BusÉireann | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="IStopWrapper"/> interface. | ||
/// </summary> | ||
public interface IStopWrapper | ||
{ | ||
/// <summary> | ||
/// Gets and stores the list of bus stops for a given geo location. | ||
/// </summary> | ||
/// <param name="latitudeNorth">Latitude North</param> | ||
/// <param name="latitudeSouth">Latitude South</param> | ||
/// <param name="longitudeEast">Longitude East</param> | ||
/// <param name="longitudeWest">Longitude West</param> | ||
/// <returns>An awaitable <see cref="Task"/>.</returns> | ||
Task GetStopsForGeoLocationAsync(string latitudeNorth, string latitudeSouth, string longitudeEast, string longitudeWest); | ||
|
||
/// <summary> | ||
/// The Passages for an already retrieved list of stops. | ||
/// <para><see cref="GetStopsForGeoLocationAsync"/> MUST be called, first.</para> | ||
/// </summary> | ||
/// <returns>An awaitable <see cref="Task{TaskToAsyncResult}"/> of <see cref="List{T}"/> of <see cref="CorrelatedPassages"/>.</returns> | ||
Task<List<CorrelatedPassages>> GetPassagesForStopsAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters