using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Protocol;

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

/// <summary>
/// Published by DCL to an Instance Actor when a subscribed tag value changes.
/// </summary>
public record TagValueUpdate(
    string ConnectionName,
    string TagPath,
    object? Value,
    QualityCode Quality,
    DateTimeOffset Timestamp);

/// <summary>
/// Published by DCL when connection state changes, causing bulk quality updates.
/// </summary>
public record ConnectionQualityChanged(
    string ConnectionName,
    QualityCode Quality,
    DateTimeOffset Timestamp);
