22 lines
530 B
C#
22 lines
530 B
C#
namespace TheXamlGuy.Framework.Serial;
|
|
|
|
public record SerialResponse
|
|
{
|
|
public static SerialResponse<TContent> Create<TContent>(ISerialContext context, TContent content)
|
|
{
|
|
return new SerialResponse<TContent>(context, content);
|
|
}
|
|
}
|
|
|
|
public record SerialResponse<TContent> : ISerialResponse
|
|
{
|
|
public SerialResponse(ISerialContext context, TContent content)
|
|
{
|
|
Context = context;
|
|
Content = content;
|
|
}
|
|
|
|
public ISerialContext Context { get; }
|
|
|
|
public TContent Content { get; }
|
|
} |