You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
546 B
19 lines
546 B
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 IDataSerializer
|
|
{
|
|
T DeserializeJsonFromStream<T>(Stream stream);
|
|
T DeserializeJsvFromStream<T>(Stream stream);
|
|
T DeserializeProtobufFromStream<T>(Stream stream);
|
|
|
|
bool CanDeserializeJsv { get; }
|
|
bool CanDeserializeProtobuf { get; }
|
|
}
|
|
}
|