using System;

namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;

/// <summary>A change in one advised subtag value, normalized off the COM boundary.</summary>
public sealed class SubtagValueChange
{
    /// <summary>Gets or sets the MXAccess item address (subtag reference) whose value changed.</summary>
    public string ItemAddress { get; set; } = string.Empty;

    /// <summary>Gets or sets the new value, as delivered by MXAccess (boxed COM variant or test value).</summary>
    public object? Value { get; set; }

    /// <summary>Gets or sets the UTC timestamp the change was observed.</summary>
    public DateTime TimestampUtc { get; set; }
}
