mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-09-19 12:04:29 +02:00
32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using System;
|
|
using TINK.Repository;
|
|
using TINK.Repository.Response;
|
|
using TINK.Repository.Response.Stations;
|
|
|
|
namespace TINK.Model.Services.CopriApi
|
|
{
|
|
public interface ICopriCache : ICopriServer
|
|
{
|
|
/// <summary> Gets a value indicating whether stations are expired or not.</summary>
|
|
bool IsStationsExpired { get; }
|
|
|
|
/// <summary> Adds a stations all response to cache.</summary>
|
|
/// <param name="stations">Stations to add.</param>
|
|
void AddToCache(StationsAvailableResponse stations);
|
|
|
|
/// <summary> Gets a value indicating whether stations are expired or not.</summary>
|
|
bool IsBikesAvailableExpired { get; }
|
|
|
|
/// <summary> Adds a bikes response to cache.</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="bikes">Bikes to add.</param>
|
|
void AddToCache(BikesAvailableResponse bikes, Uri operatorUri = null);
|
|
|
|
/// <summary> Gets a value indicating whether stations are expired or not.</summary>
|
|
bool IsBikesOccupiedExpired { get; }
|
|
|
|
/// <summary> Adds a bikes response to cache.</summary>
|
|
/// <param name="bikes">Bikes to add.</param>
|
|
void AddToCache(BikesReservedOccupiedResponse bikes);
|
|
}
|
|
}
|