/// <summary>
 /// Initializes a new instance of the MethodMetadataRequestApiModel
 /// class.
 /// </summary>
 /// <param name="methodId">Method id of method to call.
 /// (Required)</param>
 /// <param name="methodBrowsePath">An optional component path from the
 /// node identified by
 /// MethodId to the actual method node.</param>
 public MethodMetadataRequestApiModel(string methodId = default(string), IList <string> methodBrowsePath = default(IList <string>), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     MethodId         = methodId;
     MethodBrowsePath = methodBrowsePath;
     Header           = header;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the ValueReadRequestApiModel class.
 /// </summary>
 /// <param name="nodeId">Node to read from (mandatory)</param>
 /// <param name="browsePath">An optional path from NodeId instance to
 /// the actual node.</param>
 /// <param name="indexRange">Index range to read, e.g. 1:2,0:1 for 2
 /// slices
 /// out of a matrix or 0:1 for the first item in
 /// an array, string or bytestring.
 /// See 7.22 of part 4: NumericRange.</param>
 public ValueReadRequestApiModel(string nodeId = default(string), IList <string> browsePath = default(IList <string>), string indexRange = default(string), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     NodeId     = nodeId;
     BrowsePath = browsePath;
     IndexRange = indexRange;
     Header     = header;
     CustomInit();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the BrowsePathRequestApiModel class.
 /// </summary>
 /// <param name="browsePaths">The paths to browse from node.
 /// (mandatory)</param>
 /// <param name="nodeId">Node to browse from.
 /// (default: RootFolder).</param>
 /// <param name="readVariableValues">Whether to read variable values on
 /// target nodes.
 /// (default is false)</param>
 public BrowsePathRequestApiModel(IList <IList <string> > browsePaths, string nodeId = default(string), bool?readVariableValues = default(bool?), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     NodeId             = nodeId;
     BrowsePaths        = browsePaths;
     ReadVariableValues = readVariableValues;
     Header             = header;
     CustomInit();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the BrowseNextRequestApiModel class.
 /// </summary>
 /// <param name="continuationToken">Continuation token from previews
 /// browse request.
 /// (mandatory)</param>
 /// <param name="abort">Whether to abort browse and release.
 /// (default: false)</param>
 /// <param name="targetNodesOnly">Whether to collapse all references
 /// into a set of
 /// unique target nodes and not show reference
 /// information.
 /// (default is false)</param>
 /// <param name="readVariableValues">Whether to read variable values on
 /// target nodes.
 /// (default is false)</param>
 public BrowseNextRequestApiModel(string continuationToken, bool?abort = default(bool?), bool?targetNodesOnly = default(bool?), bool?readVariableValues = default(bool?), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     ContinuationToken  = continuationToken;
     Abort              = abort;
     TargetNodesOnly    = targetNodesOnly;
     ReadVariableValues = readVariableValues;
     Header             = header;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ValueWriteRequestApiModel class.
 /// </summary>
 /// <param name="value">Value to write. The system tries to convert
 /// the value according to the data type value,
 /// e.g. convert comma seperated value strings
 /// into arrays.  (Mandatory)</param>
 /// <param name="nodeId">Node id to to write value to.</param>
 /// <param name="browsePath">An optional path from NodeId instance to
 /// the actual node.</param>
 /// <param name="dataType">A built in datatype for the value. This can
 /// be a data type from browse, or a built in
 /// type.
 /// (default: best effort)</param>
 /// <param name="indexRange">Index range to write</param>
 public ValueWriteRequestApiModel(object value, string nodeId = default(string), IList <string> browsePath = default(IList <string>), string dataType = default(string), string indexRange = default(string), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     NodeId     = nodeId;
     BrowsePath = browsePath;
     Value      = value;
     DataType   = dataType;
     IndexRange = indexRange;
     Header     = header;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MethodCallRequestApiModel class.
 /// </summary>
 /// <param name="methodId">Method id of method to call.</param>
 /// <param name="objectId">Context of the method, i.e. an object or
 /// object type
 /// node.</param>
 /// <param name="arguments">Arguments for the method - null means no
 /// args</param>
 /// <param name="methodBrowsePath">An optional component path from the
 /// node identified by
 /// MethodId or from a resolved objectId to the actual
 /// method node.</param>
 /// <param name="objectBrowsePath">An optional component path from the
 /// node identified by
 /// ObjectId to the actual object or objectType node.
 /// If ObjectId is null, the root node (i=84) is used.</param>
 /// <param name="header">Optional request header</param>
 public MethodCallRequestApiModel(string methodId = default(string), string objectId = default(string), IList <MethodCallArgumentApiModel> arguments = default(IList <MethodCallArgumentApiModel>), IList <string> methodBrowsePath = default(IList <string>), IList <string> objectBrowsePath = default(IList <string>), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     MethodId         = methodId;
     ObjectId         = objectId;
     Arguments        = arguments;
     MethodBrowsePath = methodBrowsePath;
     ObjectBrowsePath = objectBrowsePath;
     Header           = header;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the BrowseRequestApiModel class.
 /// </summary>
 /// <param name="nodeId">Node to browse.
 /// (default: RootFolder).</param>
 /// <param name="direction">Possible values include: 'Forward',
 /// 'Backward', 'Both'</param>
 /// <param name="referenceTypeId">Reference types to browse.
 /// (default: hierarchical).</param>
 /// <param name="noSubtypes">Whether to include subtypes of the
 /// reference type.
 /// (default is false)</param>
 /// <param name="maxReferencesToReturn">Max number of references to
 /// return. There might
 /// be less returned as this is up to the client
 /// restrictions.  Set to 0 to return no references
 /// or target nodes.
 /// (default is decided by client e.g. 60)</param>
 /// <param name="targetNodesOnly">Whether to collapse all references
 /// into a set of
 /// unique target nodes and not show reference
 /// information.
 /// (default is false)</param>
 /// <param name="readVariableValues">Whether to read variable values on
 /// target nodes.
 /// (default is false)</param>
 public BrowseRequestApiModel(string nodeId = default(string), BrowseDirection?direction = default(BrowseDirection?), BrowseViewApiModel view = default(BrowseViewApiModel), string referenceTypeId = default(string), bool?noSubtypes = default(bool?), int?maxReferencesToReturn = default(int?), bool?targetNodesOnly = default(bool?), bool?readVariableValues = default(bool?), RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     NodeId                = nodeId;
     Direction             = direction;
     View                  = view;
     ReferenceTypeId       = referenceTypeId;
     NoSubtypes            = noSubtypes;
     MaxReferencesToReturn = maxReferencesToReturn;
     TargetNodesOnly       = targetNodesOnly;
     ReadVariableValues    = readVariableValues;
     Header                = header;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the WriteRequestApiModel class.
 /// </summary>
 /// <param name="attributes">Attributes to update</param>
 /// <param name="header">Optional request header</param>
 public WriteRequestApiModel(IList <AttributeWriteRequestApiModel> attributes, RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     Attributes = attributes;
     Header     = header;
     CustomInit();
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the PublishStartRequestApiModel
 /// class.
 /// </summary>
 /// <param name="item">Item to publish</param>
 /// <param name="header">Optional request header</param>
 public PublishStartRequestApiModel(PublishedItemApiModel item, RequestHeaderApiModel header = default(RequestHeaderApiModel))
 {
     Item   = item;
     Header = header;
     CustomInit();
 }