|
@@ -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>
|