aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ApiInteraction/IJsonSerializer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.ApiInteraction/IJsonSerializer.cs')
-rw-r--r--MediaBrowser.ApiInteraction/IJsonSerializer.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.ApiInteraction/IJsonSerializer.cs b/MediaBrowser.ApiInteraction/IJsonSerializer.cs
new file mode 100644
index 000000000..41f4049bb
--- /dev/null
+++ b/MediaBrowser.ApiInteraction/IJsonSerializer.cs
@@ -0,0 +1,13 @@
+using System;
+using System.IO;
+
+namespace MediaBrowser.ApiInteraction
+{
+ /// <summary>
+ /// Since ServiceStack Json is not portable, we need to abstract required json functions into an interface
+ /// </summary>
+ public interface IJsonSerializer
+ {
+ T DeserializeFromStream<T>(Stream stream);
+ }
+}