mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 02:26:29 +01:00
29 lines
1 KiB
C#
29 lines
1 KiB
C#
|
using TINK.Model.Repository.Response;
|
|||
|
using TINK.Repository.Response;
|
|||
|
|
|||
|
namespace TINK.Model.Repository
|
|||
|
{
|
|||
|
public static class CopriCallsStatic
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Deserializes JSON from response string.
|
|||
|
/// </summary>
|
|||
|
/// <param name="p_strResponse">Response to deserialize.</param>
|
|||
|
/// <returns></returns>
|
|||
|
public static BikesAvailableResponse DeserializeBikesAvailableResponse(string p_strResponse)
|
|||
|
{
|
|||
|
return JsonConvert.DeserializeObject<ResponseContainer<BikesAvailableResponse>>(p_strResponse)?.tinkjson;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Deserializes JSON from response string.
|
|||
|
/// </summary>
|
|||
|
/// <param name="p_strResponse">Response to deserialize.</param>
|
|||
|
/// <returns></returns>
|
|||
|
public static BikesReservedOccupiedResponse DeserializeBikesOccupiedResponse(string p_strResponse)
|
|||
|
{
|
|||
|
return JsonConvert.DeserializeObject<ResponseContainer<BikesReservedOccupiedResponse>>(p_strResponse)?.tinkjson;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|