mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
07cc4be6a7
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using System.IO;
|
|
|
|
namespace MediaBrowser.Model.Serialization
|
|
{
|
|
public interface IXmlSerializer
|
|
{
|
|
/// <summary>
|
|
/// Deserializes from stream.
|
|
/// </summary>
|
|
/// <param name="type">The type.</param>
|
|
/// <param name="stream">The stream.</param>
|
|
/// <returns>System.Object.</returns>
|
|
object DeserializeFromStream(Type type, Stream stream);
|
|
|
|
/// <summary>
|
|
/// Serializes to stream.
|
|
/// </summary>
|
|
/// <param name="obj">The obj.</param>
|
|
/// <param name="stream">The stream.</param>
|
|
void SerializeToStream(object obj, Stream stream);
|
|
|
|
/// <summary>
|
|
/// Serializes to file.
|
|
/// </summary>
|
|
/// <param name="obj">The obj.</param>
|
|
/// <param name="file">The file.</param>
|
|
void SerializeToFile(object obj, string file);
|
|
|
|
/// <summary>
|
|
/// Deserializes from file.
|
|
/// </summary>
|
|
/// <param name="type">The type.</param>
|
|
/// <param name="file">The file.</param>
|
|
/// <returns>System.Object.</returns>
|
|
object DeserializeFromFile(Type type, string file);
|
|
|
|
/// <summary>
|
|
/// Deserializes from bytes.
|
|
/// </summary>
|
|
/// <param name="type">The type.</param>
|
|
/// <param name="buffer">The buffer.</param>
|
|
/// <returns>System.Object.</returns>
|
|
object DeserializeFromBytes(Type type, byte[] buffer);
|
|
}
|
|
}
|