mirror of
https://github.com/Radarr/Radarr
synced 2026-05-04 22:10:50 +02:00
18 lines
636 B
C#
18 lines
636 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
|
|
|
|
using System.IO;
|
|
|
|
namespace Microsoft.AspNet.SignalR.Json
|
|
{
|
|
/// <summary>
|
|
/// Implementations handle their own serialization to JSON.
|
|
/// </summary>
|
|
public interface IJsonWritable
|
|
{
|
|
/// <summary>
|
|
/// Serializes itself to JSON via a <see cref="System.IO.TextWriter"/>.
|
|
/// </summary>
|
|
/// <param name="writer">The <see cref="System.IO.TextWriter"/> that receives the JSON serialized object.</param>
|
|
void WriteJson(TextWriter writer);
|
|
}
|
|
}
|