aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.ApiInteraction/ApiClient.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs
index 4e519ce4f..55c30765d 100644
--- a/MediaBrowser.ApiInteraction/ApiClient.cs
+++ b/MediaBrowser.ApiInteraction/ApiClient.cs
@@ -105,6 +105,20 @@ namespace MediaBrowser.ApiInteraction
}
/// <summary>
+ /// Gets the recently added items
+ /// </summary>
+ /// <param name="userId">The user id.</param>
+ /// <returns></returns>
+ public async Task<DTOBaseItem[]> GetRecentlyAddedItemsAsync(Guid userId)
+ {
+ string url = ApiUrl + "/itemlist?listtype=recentlyaddeditems&userId=" + userId.ToString();
+ using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(true))
+ {
+ return DeserializeFromStream<DTOBaseItem[]>(stream);
+ }
+ }
+
+ /// <summary>
/// Gets all Years
/// </summary>
public async Task<IBNItem[]> GetAllYearsAsync(Guid userId)