using TINK.Model.Repository.Response;
using TINK.Repository.Response;
namespace TINK.Model.Repository
{
public static class CopriCallsStatic
{
///
/// Deserializes JSON from response string.
///
/// Response to deserialize.
///
public static BikesAvailableResponse DeserializeBikesAvailableResponse(string p_strResponse)
{
return JsonConvert.DeserializeObject>(p_strResponse)?.tinkjson;
}
///
/// Deserializes JSON from response string.
///
/// Response to deserialize.
///
public static BikesReservedOccupiedResponse DeserializeBikesOccupiedResponse(string p_strResponse)
{
return JsonConvert.DeserializeObject>(p_strResponse)?.tinkjson;
}
}
}