diff options
| author | ebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com> | 2012-08-01 23:15:11 -0400 |
|---|---|---|
| committer | ebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com> | 2012-08-01 23:15:11 -0400 |
| commit | 51ce69d9dbd0f2acf44100de4c021eec2d841d89 (patch) | |
| tree | b256f22f5e426874602d88739bc04daa73356202 /MediaBrowser.ApiInteraction/BaseClient.cs | |
| parent | 6e8bfb6d9b34e8aad876bdb21907ca686741e7cb (diff) | |
| parent | 80fd8d015626cbb5ed9ea8678149b13a4a1272f4 (diff) | |
Merge
Diffstat (limited to 'MediaBrowser.ApiInteraction/BaseClient.cs')
| -rw-r--r-- | MediaBrowser.ApiInteraction/BaseClient.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/MediaBrowser.ApiInteraction/BaseClient.cs b/MediaBrowser.ApiInteraction/BaseClient.cs index bd25b1653..887c1779f 100644 --- a/MediaBrowser.ApiInteraction/BaseClient.cs +++ b/MediaBrowser.ApiInteraction/BaseClient.cs @@ -8,7 +8,23 @@ namespace MediaBrowser.ApiInteraction /// </summary>
public abstract class BaseClient : IDisposable
{
- public string ApiUrl { get; set; }
+ /// <summary>
+ /// Gets or sets the server host name (myserver or 192.168.x.x)
+ /// </summary>
+ public string ServerHostName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the port number used by the API
+ /// </summary>
+ public int ApiPort { get; set; }
+
+ protected string ApiUrl
+ {
+ get
+ {
+ return string.Format("http://{0}:{1}/mediabrowser/api", ServerHostName, ApiPort);
+ }
+ }
protected HttpClient HttpClient { get; private set; }
|
