Added GetDefaultUser to ApiClient and updated mb logo

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-09-02 11:06:12 -04:00
parent f428c976aa
commit b6bc22ae63
2 changed files with 13 additions and 0 deletions

View File

@ -579,6 +579,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> /// <summary>
/// Gets weather information for the default location as set in configuration /// Gets weather information for the default location as set in configuration
/// </summary> /// </summary>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 32 KiB