mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-27 19:34:51 +00:00
25 lines
737 B
C#
25 lines
737 B
C#
using System.Collections.Generic;
|
|
using PepperDash.Core.Intersystem.Tokens;
|
|
|
|
namespace PepperDash.Core.Intersystem.Serialization
|
|
{
|
|
/// <summary>
|
|
/// Interface to determine XSig serialization for an object.
|
|
/// </summary>
|
|
public interface IXSigSerialization
|
|
{
|
|
/// <summary>
|
|
/// Serialize the sig data
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IEnumerable<XSigToken> Serialize();
|
|
|
|
/// <summary>
|
|
/// Deserialize the sig data
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <param name="tokens"></param>
|
|
/// <returns></returns>
|
|
T Deserialize<T>(IEnumerable<XSigToken> tokens) where T : class, IXSigSerialization;
|
|
}
|
|
} |