From 719bc9c941e53895883980aacfc3a847ce2b295b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 16 Jan 2026 00:59:10 +0100 Subject: [PATCH] Add UpdateEndpointParamsProcedure record A new `UpdateEndpointParamsProcedure` record has been added under the `ReC.Application.Common.Procedures.UpdateProcedure` namespace. This record implements the `IUpdateProcedure` interface and includes nullable properties such as `Active`, `Description`, `GroupId`, `Sequence`, `Key`, and `Value`. Additionally, a `ToObjectProcedure` method has been introduced, which converts the record into an `UpdateObjectProcedure` instance with the `Entity` set to `"ENDPOINT_PARAMS"`, and supports optional tracking of the user who made the change. --- .../UpdateEndpointParamsProcedure.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/ReC.Application/Common/Procedures/UpdateProcedure/UpdateEndpointParamsProcedure.cs diff --git a/src/ReC.Application/Common/Procedures/UpdateProcedure/UpdateEndpointParamsProcedure.cs b/src/ReC.Application/Common/Procedures/UpdateProcedure/UpdateEndpointParamsProcedure.cs new file mode 100644 index 0000000..60e993a --- /dev/null +++ b/src/ReC.Application/Common/Procedures/UpdateProcedure/UpdateEndpointParamsProcedure.cs @@ -0,0 +1,21 @@ +namespace ReC.Application.Common.Procedures.UpdateProcedure; + +public record UpdateEndpointParamsProcedure : IUpdateProcedure +{ + public bool? Active { get; set; } + public string? Description { get; set; } + public short? GroupId { get; set; } + public byte? Sequence { get; set; } + public string? Key { get; set; } + public string? Value { get; set; } + + public UpdateObjectProcedure ToObjectProcedure(long guid, string? changedWho = null) + { + return new UpdateObjectProcedure + { + Entity = "ENDPOINT_PARAMS", + Guid = guid, + EndpointParams = this + }.ChangedBy(changedWho); + } +}