From c5709c148b32a8bf3cbeac1e1c9f89ce422fb6cb Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 11:03:34 +0100 Subject: [PATCH] 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. --- .../Commands/CreateOutResCommand.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs diff --git a/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs new file mode 100644 index 0000000..35f6811 --- /dev/null +++ b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs @@ -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; } +} \ No newline at end of file