Added an ApiInteraction project that UI's can use to talk to the server. Moved jsonserializer namespace from json to serialization, since we may be adding an xml serializer.

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-07-31 12:29:07 -04:00
parent 3058b71764
commit defd8ed253
12 changed files with 355 additions and 12 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Net.Http;
namespace MediaBrowser.ApiInteraction
{
/// <summary>
/// Provides a base class used by the api and image services
/// </summary>
public abstract class BaseClient : IDisposable
{
public string ApiUrl { get; set; }
protected HttpClient HttpClient { get; private set; }
public BaseClient()
{
HttpClient = new HttpClient();
}
public void Dispose()
{
HttpClient.Dispose();
}
}
}