Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options?: AcknowledgeMessageOptions) {
options = options || {};
super();
const schema = schemaAcknowledgeMessage;
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.protocolVersion = initialize_field(schema.fields[0], options.protocolVersion);
this.receiveBufferSize = initialize_field(schema.fields[1], options.receiveBufferSize);
this.sendBufferSize = initialize_field(schema.fields[2], options.sendBufferSize);
this.maxMessageSize = initialize_field(schema.fields[3], options.maxMessageSize);
this.maxChunkCount = initialize_field(schema.fields[4], options.maxChunkCount);
}
constructor(options?: any) {
options = options || {};
super();
const schema = schemaDiagnosticInfo;
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.symbolicId = initialize_field(schema.fields[0], options.symbolicId);
this.namespaceURI = initialize_field(schema.fields[1], options.namespaceURI);
this.locale = initialize_field(schema.fields[2], options.locale);
this.localizedText = initialize_field(schema.fields[3], options.localizedText);
this.additionalInfo = initialize_field(schema.fields[4], options.additionalInfo);
this.innerStatusCode = initialize_field(schema.fields[5], options.innerStatusCode);
this.innerDiagnosticInfo = initialize_field(schema.fields[6], options.innerDiagnosticInfo);
}
constructor(options?: any) {
options = options || {};
super();
const schema = schemaAsymmetricAlgorithmSecurityHeader;
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.securityPolicyUri = initialize_field(schema.fields[0], options.securityPolicyUri);
this.senderCertificate = initialize_field(schema.fields[1], options.senderCertificate);
this.receiverCertificateThumbprint = initialize_field(schema.fields[2], options.receiverCertificateThumbprint);
}
constructor(options?: any) {
options = options || {};
super();
const schema = schemaSequenceHeader;
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.sequenceNumber = initialize_field(schema.fields[0], options.sequenceNumber);
this.requestId = initialize_field(schema.fields[1], options.requestId);
}
constructor(options?: DataValueOptions) {
super();
const schema = schemaDataValue;
options = options || {};
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
if (options === null) {
this.value = new Variant({ dataType: DataType.Null });
}
/**
* @property value
* @type {Variant}
* @default null
*/
if (options.value === undefined || options.value === null) {
this.value = new Variant({ dataType: DataType.Null });
} else {
this.value = (options.value) ? new Variant(options.value) : new Variant({ dataType: DataType.Null });
}
constructor(options?: LocalizedTextOptions) {
super();
const schema = schemaLocalizedText;
options = options || {};
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
/**
* @property locale
* @type {UAString}
*/
this.locale = initialize_field(schema.fields[0], options.locale);
/**
* @property text
* @type {UAString}
*/
this.text = initialize_field(schema.fields[1], options.text);
}
constructor(options?: HelloMessageOptions) {
options = options || {};
super();
const schema = schemaHelloMessage;
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.protocolVersion = initialize_field(schema.fields[0], options.protocolVersion);
this.receiveBufferSize = initialize_field(schema.fields[1], options.receiveBufferSize);
this.sendBufferSize = initialize_field(schema.fields[2], options.sendBufferSize);
this.maxMessageSize = initialize_field(schema.fields[3], options.maxMessageSize);
this.maxChunkCount = initialize_field(schema.fields[4], options.maxChunkCount);
this.endpointUrl = initialize_field(schema.fields[5], options.endpointUrl);
}
constructor(options?: { statusCode?: StatusCode, reason?: string}) {
options = options || {};
const schema = schemaTCPErrorMessage;
super();
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
this.statusCode = initialize_field(schema.fields[0], options.statusCode);
this.reason = initialize_field(schema.fields[1], options.reason);
}
constructor(options?: QualifiedNameOptions) {
super();
const schema = QualifiedName.schema;
options = options || {};
/* istanbul ignore next */
if (parameters.debugSchemaHelper) {
check_options_correctness_against_schema(this, schema, options);
}
/**
* @property namespaceIndex
* @type {Int32}
*/
this.namespaceIndex = initialize_field(schema.fields[0], options.namespaceIndex);
/**
* @property name
* @type {UAString}
*/
this.name = initialize_field(schema.fields[1], options.name);
}