浏览代码

Added GetDefaultUser to ApiClient and updated mb logo

LukePulverenti Luke Pulverenti luke pulverenti 12 年之前
父节点
当前提交
b6bc22ae63
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      MediaBrowser.ApiInteraction/ApiClient.cs
  2. 二进制
      MediaBrowser.Common/Resources/mblogo.png

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

二进制
MediaBrowser.Common/Resources/mblogo.png