From 4527a187387295d73568bc3eef18aaad78633dfd Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Thu, 23 Aug 2012 08:50:41 -0400 Subject: Removed generics from IBNItem --- MediaBrowser.ApiInteraction/ApiClient.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'MediaBrowser.ApiInteraction') diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs index 4b9a712927..2e7684cb03 100644 --- a/MediaBrowser.ApiInteraction/ApiClient.cs +++ b/MediaBrowser.ApiInteraction/ApiClient.cs @@ -197,26 +197,26 @@ namespace MediaBrowser.ApiInteraction /// /// Gets all Genres /// - public async Task>> GetAllGenresAsync(Guid userId) + public async Task> GetAllGenresAsync(Guid userId) { string url = ApiUrl + "/genres?userId=" + userId.ToString(); using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>>(stream); + return DataSerializer.DeserializeFromStream>(stream); } } /// /// Gets all Years /// - public async Task>> GetAllYearsAsync(Guid userId) + public async Task> GetAllYearsAsync(Guid userId) { string url = ApiUrl + "/years?userId=" + userId.ToString(); using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>>(stream); + return DataSerializer.DeserializeFromStream>(stream); } } @@ -277,13 +277,13 @@ namespace MediaBrowser.ApiInteraction /// /// Gets all studious /// - public async Task>> GetAllStudiosAsync(Guid userId) + public async Task> GetAllStudiosAsync(Guid userId) { string url = ApiUrl + "/studios?userId=" + userId.ToString(); using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>>(stream); + return DataSerializer.DeserializeFromStream>(stream); } } @@ -303,52 +303,52 @@ namespace MediaBrowser.ApiInteraction /// /// Gets a studio /// - public async Task> GetStudioAsync(Guid userId, string name) + public async Task GetStudioAsync(Guid userId, string name) { string url = ApiUrl + "/studio?userId=" + userId.ToString() + "&name=" + name; using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>(stream); + return DataSerializer.DeserializeFromStream(stream); } } /// /// Gets a genre /// - public async Task> GetGenreAsync(Guid userId, string name) + public async Task GetGenreAsync(Guid userId, string name) { string url = ApiUrl + "/genre?userId=" + userId.ToString() + "&name=" + name; using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>(stream); + return DataSerializer.DeserializeFromStream(stream); } } /// /// Gets a person /// - public async Task> GetPersonAsync(Guid userId, string name) + public async Task GetPersonAsync(Guid userId, string name) { string url = ApiUrl + "/person?userId=" + userId.ToString() + "&name=" + name; using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>(stream); + return DataSerializer.DeserializeFromStream(stream); } } /// /// Gets a year /// - public async Task> GetYearAsync(Guid userId, int year) + public async Task GetYearAsync(Guid userId, int year) { string url = ApiUrl + "/year?userId=" + userId.ToString() + "&year=" + year; using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(false)) { - return DataSerializer.DeserializeFromStream>(stream); + return DataSerializer.DeserializeFromStream(stream); } } -- cgit v1.2.3