aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/IO/IZipClient.cs26
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj1
2 files changed, 27 insertions, 0 deletions
diff --git a/MediaBrowser.Model/IO/IZipClient.cs b/MediaBrowser.Model/IO/IZipClient.cs
new file mode 100644
index 0000000000..c9e7e0db68
--- /dev/null
+++ b/MediaBrowser.Model/IO/IZipClient.cs
@@ -0,0 +1,26 @@
+using System.IO;
+
+namespace MediaBrowser.Model.IO
+{
+ /// <summary>
+ /// Interface IZipClient
+ /// </summary>
+ public interface IZipClient
+ {
+ /// <summary>
+ /// Extracts all.
+ /// </summary>
+ /// <param name="sourceFile">The source file.</param>
+ /// <param name="targetPath">The target path.</param>
+ /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
+ void ExtractAll(string sourceFile, string targetPath, bool overwriteExistingFiles);
+
+ /// <summary>
+ /// Extracts all.
+ /// </summary>
+ /// <param name="source">The source.</param>
+ /// <param name="targetPath">The target path.</param>
+ /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
+ void ExtractAll(Stream source, string targetPath, bool overwriteExistingFiles);
+ }
+}
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index 9a7f65caa3..dd11a131ac 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -64,6 +64,7 @@
<Compile Include="Entities\IHasMediaStreams.cs" />
<Compile Include="Entities\VideoFormat.cs" />
<Compile Include="Extensions\ModelExtensions.cs" />
+ <Compile Include="IO\IZipClient.cs" />
<Compile Include="Logging\ILogger.cs" />
<Compile Include="Logging\LogSeverity.cs" />
<Compile Include="Net\HttpException.cs" />