diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-02 11:06:12 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-02 11:06:12 -0400 |
| commit | b6bc22ae638f8a8ad54609547ceb82253b4386d2 (patch) | |
| tree | 5b7337a541e4bb3f918959205555cb77357dcbae | |
| parent | f428c976aaef610eb8ef6476a846c31cc0ce592a (diff) | |
Added GetDefaultUser to ApiClient and updated mb logo
| -rw-r--r-- | MediaBrowser.ApiInteraction/ApiClient.cs | 13 | ||||
| -rw-r--r-- | MediaBrowser.Common/Resources/mblogo.png | bin | 23457 -> 32983 bytes |
2 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs index 922b4bb0c..bc06aa9a2 100644 --- a/MediaBrowser.ApiInteraction/ApiClient.cs +++ b/MediaBrowser.ApiInteraction/ApiClient.cs @@ -582,6 +582,19 @@ namespace MediaBrowser.ApiInteraction /// <summary>
/// Gets weather information for the default location as set in configuration
/// </summary>
+ public async Task<DTOUser> GetDefaultUserAsync()
+ {
+ string url = ApiUrl + "/defaultuser";
+
+ using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))
+ {
+ return DeserializeFromStream<DTOUser>(stream);
+ }
+ }
+
+ /// <summary>
+ /// Gets weather information for the default location as set in configuration
+ /// </summary>
public async Task<WeatherInfo> GetWeatherInfoAsync()
{
string url = ApiUrl + "/weather";
diff --git a/MediaBrowser.Common/Resources/mblogo.png b/MediaBrowser.Common/Resources/mblogo.png Binary files differindex 3b86a12af..84323fe52 100644 --- a/MediaBrowser.Common/Resources/mblogo.png +++ b/MediaBrowser.Common/Resources/mblogo.png |
