mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 02:27:18 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			531 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			531 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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; }
 | |
|     }
 | |
| }
 |