32 lines
945 B
C#
32 lines
945 B
C#
using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Protocol;
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Management;
|
|
|
|
/// <summary>
|
|
/// Sent from CentralUI to a specific site to enumerate the immediate children
|
|
/// of an OPC UA node on the live server backing the given data connection.
|
|
/// </summary>
|
|
/// <param name="DataConnectionId">Id of the site-local data connection to browse against.</param>
|
|
/// <param name="ParentNodeId">Node to browse, or null to browse from the server root (ObjectsFolder).</param>
|
|
public record BrowseOpcUaNodeCommand(
|
|
int DataConnectionId,
|
|
string? ParentNodeId);
|
|
|
|
public record BrowseOpcUaNodeResult(
|
|
IReadOnlyList<BrowseNode> Children,
|
|
bool Truncated,
|
|
BrowseFailure? Failure);
|
|
|
|
public record BrowseFailure(
|
|
BrowseFailureKind Kind,
|
|
string Message);
|
|
|
|
public enum BrowseFailureKind
|
|
{
|
|
ConnectionNotFound,
|
|
ConnectionNotConnected,
|
|
NotBrowsable,
|
|
Timeout,
|
|
ServerError
|
|
}
|