using System; using System.Net.Http; namespace RestEase { /// /// Helper capable of deserializing a response, to return to the caller /// [Obsolete("Use ResponseDeserializer instead")] public interface IResponseDeserializer { /// /// Read the response string from the response, deserialize, and return a deserialized object /// /// Type of object to deserialize into /// String content read from the response /// HttpResponseMessage. Consider calling response.Content.ReadAsStringAsync() to retrieve a string /// Deserialized response T Deserialize(string? content, HttpResponseMessage response); } }