diff options
Diffstat (limited to 'MediaBrowser.ApiInteraction/BaseClient.cs')
| -rw-r--r-- | MediaBrowser.ApiInteraction/BaseClient.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/MediaBrowser.ApiInteraction/BaseClient.cs b/MediaBrowser.ApiInteraction/BaseClient.cs new file mode 100644 index 000000000..ab76b9e48 --- /dev/null +++ b/MediaBrowser.ApiInteraction/BaseClient.cs @@ -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();
+ }
+ }
+}
|
