aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ApiInteraction/BaseClient.cs
blob: ab76b9e486b1b0bdd82691b817b78575ab3a9165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
        }
    }
}