blob: 999045ddac4585ef67b4d31b6846ccf9fc99a098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 IDataSerializer
{
T DeserializeJsonFromStream<T>(Stream stream);
T DeserializeJsvFromStream<T>(Stream stream);
T DeserializeProtobufFromStream<T>(Stream stream);
bool CanDeserializeJsv { get; }
bool CanDeserializeProtobuf { get; }
}
}
|