Add CreateOutResCommand class for handling output results

Introduced the `CreateOutResCommand` class in the `ReC.Application.OutResults.Commands` namespace. This class includes properties for managing output results, such as `ActionId`, `ResultHeader`, `ResultBody`, and `AddedWho`. Added a static readonly `EmptyJson` property for initializing JSON fields with a serialized empty object. Included `System.Text.Json` for JSON serialization functionality.
This commit is contained in:
tekh 2025-12-01 11:03:34 +01:00
parent d4bd8b0d1a
commit c5709c148b

View File

@ -0,0 +1,19 @@
using System.Text.Json;
namespace ReC.Application.OutResults.Commands;
public class CreateOutResCommand
{
public static readonly string EmptyJson = JsonSerializer.Serialize(new object(), options: new()
{
WriteIndented = false
});
public long ActionId { get; set; }
public string ResultHeader { get; set; } = EmptyJson;
public string ResultBody { get; set; } = EmptyJson;
public string? AddedWho { get; set; }
}