Explorar o código

Added GetDefaultUser to ApiClient and updated mb logo

LukePulverenti Luke Pulverenti luke pulverenti %!s(int64=12) %!d(string=hai) anos
pai
achega
b6bc22ae63

+ 13 - 0
MediaBrowser.ApiInteraction/ApiClient.cs

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

BIN=BIN
MediaBrowser.Common/Resources/mblogo.png