namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.DataConnection;

/// <summary>
/// Request to write a value to a device tag through the DCL.
/// Write failures are returned synchronously to the calling script.
/// </summary>
public record WriteTagRequest(
    string CorrelationId,
    string ConnectionName,
    string TagPath,
    object? Value,
    DateTimeOffset Timestamp);

/// <summary>
/// Response for a device tag write operation.
/// </summary>
public record WriteTagResponse(
    string CorrelationId,
    bool Success,
    string? ErrorMessage,
    DateTimeOffset Timestamp);
