jellyfin/MediaBrowser.ApiInteraction/IDataSerializer.cs
LukePulverenti Luke Pulverenti luke pulverenti cb7f04e4d3 Upgraded Protobuf, and added api support for it
2012-08-29 08:21:56 -04:00

18 lines
546 B
C#

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; }
}
}