using CommunityToolkit.Mvvm.ComponentModel; namespace ZB.MOM.WW.OtOpcUa.Client.UI.ViewModels; /// /// Represents a single active subscription row. /// public partial class SubscriptionItemViewModel : ObservableObject { [ObservableProperty] private string? _status; [ObservableProperty] private string? _timestamp; [ObservableProperty] private string? _value; /// Initializes a new subscription item with the specified node ID and interval. /// The OPC UA NodeId to subscribe to. /// The subscription interval in milliseconds. public SubscriptionItemViewModel(string nodeId, int intervalMs) { NodeId = nodeId; IntervalMs = intervalMs; } /// The monitored NodeId. public string NodeId { get; } /// The subscription interval in milliseconds. public int IntervalMs { get; } }