mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-01-08 22:24:26 +01:00
23 lines
1 KiB
C#
23 lines
1 KiB
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using ShareeBike.Model.Bikes;
|
|
using ShareeBike.Model.Services.CopriApi;
|
|
|
|
namespace ShareeBike.Model.Connector
|
|
{
|
|
public interface IQuery
|
|
{
|
|
/// <summary> Gets all stations including positions.</summary>
|
|
Task<Result<StationsAndBikesContainer>> GetBikesAndStationsAsync();
|
|
|
|
/// <summary> Gets bikes occupied is a user is logged in. </summary>
|
|
/// <returns>Collection of bikes.</returns>
|
|
Task<Result<BikeCollection>> GetBikesOccupiedAsync();
|
|
|
|
/// <summary> Gets bikes either bikes available if no user is logged in or bikes available and bikes occupied if a user is logged in. </summary>
|
|
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
|
|
/// <param name="stationId"> Id of station which is used for filtering bikes. Null if no filtering should be applied.</param>
|
|
/// <returns>Collection of bikes.</returns>
|
|
Task<Result<BikeCollection>> GetBikesAsync(Uri operatorUri = null, string stationId = null, string bikeId = null);
|
|
}
|
|
}
|