64e3fbe035
v2-ci / build (push) Failing after 1m43s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
Adds <summary>, <param>, <typeparam>, and <inheritdoc/> tags to public members surfaced by commentchecker — resolves 5,847 of 5,869 issues (99.6%) across three /fixdocs passes.
30 lines
990 B
C#
30 lines
990 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Client.UI.ViewModels;
|
|
|
|
/// <summary>
|
|
/// Represents a single active subscription row.
|
|
/// </summary>
|
|
public partial class SubscriptionItemViewModel : ObservableObject
|
|
{
|
|
[ObservableProperty] private string? _status;
|
|
|
|
[ObservableProperty] private string? _timestamp;
|
|
|
|
[ObservableProperty] private string? _value;
|
|
|
|
/// <summary>Initializes a new subscription item with the specified node ID and interval.</summary>
|
|
/// <param name="nodeId">The OPC UA NodeId to subscribe to.</param>
|
|
/// <param name="intervalMs">The subscription interval in milliseconds.</param>
|
|
public SubscriptionItemViewModel(string nodeId, int intervalMs)
|
|
{
|
|
NodeId = nodeId;
|
|
IntervalMs = intervalMs;
|
|
}
|
|
|
|
/// <summary>The monitored NodeId.</summary>
|
|
public string NodeId { get; }
|
|
|
|
/// <summary>The subscription interval in milliseconds.</summary>
|
|
public int IntervalMs { get; }
|
|
} |