mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-05-20 00:16:38 +02:00
23 lines
881 B
C#
23 lines
881 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using TINK.Model.Bikes;
|
|
using TINK.Model.Services.CopriApi;
|
|
|
|
namespace TINK.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>
|
|
/// <returns>Collection of bikes.</returns>
|
|
Task<Result<BikeCollection>> GetBikesAsync(Uri operatorUri = null);
|
|
}
|
|
}
|