mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-01 00:46:33 +01:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using TINK.Repository;
|
|
using TINK.Repository.Response;
|
|
|
|
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(StationsAllResponse 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="bikes">Bikes to add.</param>
|
|
void AddToCache(BikesAvailableResponse bikes);
|
|
|
|
/// <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);
|
|
}
|
|
}
|