namespace ScadaLink.Commons.Messages.Instance;

/// <summary>
/// Command to set a static attribute value on an Instance Actor.
/// Updates in-memory state and persists the override to SQLite.
/// </summary>
public record SetStaticAttributeCommand(
    string CorrelationId,
    string InstanceUniqueName,
    string AttributeName,
    string Value,
    DateTimeOffset Timestamp);

/// <summary>
/// Response confirming that a static attribute was set.
/// </summary>
public record SetStaticAttributeResponse(
    string CorrelationId,
    string InstanceUniqueName,
    string AttributeName,
    bool Success,
    string? ErrorMessage,
    DateTimeOffset Timestamp);
