mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 23:26:31 +01:00
26 lines
1.3 KiB
C#
26 lines
1.3 KiB
C#
using ShareeBike.Repository.Response;
|
|
using ShareeBike.Repository.Response.Stations;
|
|
|
|
namespace ShareeBike.Repository
|
|
{
|
|
public static class CopriCallsMonkeyStoreHelper
|
|
{
|
|
/// <summary> Gets an empty response. </summary>
|
|
/// <param name="copriVersion">Version of empty response.</param>
|
|
/// <returns>Response.</returns>
|
|
public static BikesAvailableResponse GetEmptyBikesAvailableResponse(string copriVersion)
|
|
=> JsonConvertRethrow.DeserializeObject<BikesAvailableResponse>(CopriCallsMonkeyStore.BIKESAVAILABLE.Replace("4.1.0.0", copriVersion));
|
|
|
|
/// <summary> Gets an empty response. </summary>
|
|
/// <param name="copriVersion">Version of empty response.</param>
|
|
/// <returns>Response.</returns>
|
|
public static StationsAvailableResponse GetEmptyStationsAllResponse(string copriVersion)
|
|
=> JsonConvertRethrow.DeserializeObject<StationsAvailableResponse>(CopriCallsMonkeyStore.STATIONSALL.Replace("4.1.0.0", copriVersion));
|
|
|
|
/// <summary> Gets an empty response. </summary>
|
|
/// <param name="copriVersion">Version of empty response.</param>
|
|
/// <returns>Response.</returns>
|
|
public static BikesReservedOccupiedResponse GetEmptyBikesReservedOccupiedResponse(string copriVersion)
|
|
=> JsonConvertRethrow.DeserializeObject<BikesReservedOccupiedResponse>(CopriCallsMonkeyStore.BIKESOCCUPIED.Replace("4.1.0.0", copriVersion));
|
|
}
|
|
}
|