tightened up image saving to reduce knowledge of file names

This commit is contained in:
Luke Pulverenti
2013-06-28 16:25:58 -04:00
parent ac7d6256f4
commit 8a1b12b7d8
25 changed files with 584 additions and 410 deletions

View File

@@ -0,0 +1,29 @@
using System.IO;
using System.Net;
namespace MediaBrowser.Common.Net
{
/// <summary>
/// Class HttpResponseInfo
/// </summary>
public class HttpResponseInfo
{
/// <summary>
/// Gets or sets the type of the content.
/// </summary>
/// <value>The type of the content.</value>
public string ContentType { get; set; }
/// <summary>
/// Gets or sets the content.
/// </summary>
/// <value>The content.</value>
public Stream Content { get; set; }
/// <summary>
/// Gets or sets the status code.
/// </summary>
/// <value>The status code.</value>
public HttpStatusCode StatusCode { get; set; }
}
}

View File

@@ -11,6 +11,13 @@ namespace MediaBrowser.Common.Net
/// </summary>
public interface IHttpClient : IDisposable
{
/// <summary>
/// Gets the response.
/// </summary>
/// <param name="options">The options.</param>
/// <returns>Task{HttpResponseInfo}.</returns>
Task<HttpResponseInfo> GetResponse(HttpRequestOptions options);
/// <summary>
/// Performs a GET request and returns the resulting stream
/// </summary>