diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-03 15:12:02 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-03 15:12:02 -0400 |
| commit | 26aef6b08207d90bfb15ceacd528b36de5e3ddd7 (patch) | |
| tree | e7f14603317d2a884ff81ed939537426406a5a38 /MediaBrowser.ApiInteraction | |
| parent | 4500f1d11bac97d553af74a5053aa42ac00f6ff7 (diff) | |
Implemented UI plugin downloading
Diffstat (limited to 'MediaBrowser.ApiInteraction')
| -rw-r--r-- | MediaBrowser.ApiInteraction/ApiClient.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs index 621c700cf5..6384f3df99 100644 --- a/MediaBrowser.ApiInteraction/ApiClient.cs +++ b/MediaBrowser.ApiInteraction/ApiClient.cs @@ -569,7 +569,7 @@ namespace MediaBrowser.ApiInteraction /// <summary>
/// Gets a list of plugins installed on the server
/// </summary>
- public async Task<PluginInfo[]> GetInstalledPlugins()
+ public async Task<PluginInfo[]> GetInstalledPluginsAsync()
{
string url = ApiUrl + "/plugins";
@@ -578,7 +578,17 @@ namespace MediaBrowser.ApiInteraction return DeserializeFromStream<PluginInfo[]>(stream);
}
}
-
+
+ /// <summary>
+ /// Gets a list of plugins installed on the server
+ /// </summary>
+ public Task<Stream> GetPluginAssemblyAsync(PluginInfo plugin)
+ {
+ string url = ApiUrl + "/pluginassembly?assemblyfilename=" + plugin.AssemblyFileName;
+
+ return GetStreamAsync(url);
+ }
+
/// <summary>
/// Gets weather information for the default location as set in configuration
/// </summary>
@@ -655,7 +665,7 @@ namespace MediaBrowser.ApiInteraction return GetStreamAsync(url);
}
-
+
private T DeserializeFromStream<T>(Stream stream)
{
return DeserializeFromStream<T>(stream, SerializationFormat);
|
