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?: 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?: 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?: { 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?: 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 = 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?: 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);
}
*/
this.sourcePicoseconds = initialize_field(schema.fields[3], options.sourcePicoseconds);
/**
* @property serverTimestamp
* @type {DateTime}
* @default null
*/
this.serverTimestamp = initialize_field(schema.fields[4], options.serverTimestamp);
/**
* @property serverPicoseconds
* @type {UInt16}
* @default 0
*/
this.serverPicoseconds = initialize_field(schema.fields[5], options.serverPicoseconds);
}
*/
this.statusCode = initialize_field(schema.fields[1], options.statusCode);
/**
* @property sourceTimestamp
* @type {DateTime}
* @default null
*/
this.sourceTimestamp = initialize_field(schema.fields[2], options.sourceTimestamp);
/**
* @property sourcePicoseconds
* @type {UInt16}
* @default 0
*/
this.sourcePicoseconds = initialize_field(schema.fields[3], options.sourcePicoseconds);
/**
* @property serverTimestamp
* @type {DateTime}
* @default null
*/
this.serverTimestamp = initialize_field(schema.fields[4], options.serverTimestamp);
/**
* @property serverPicoseconds
* @type {UInt16}
* @default 0
*/
this.serverPicoseconds = initialize_field(schema.fields[5], options.serverPicoseconds);
}
* @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 });
}
/**
* @property statusCode
* @type {StatusCode}
* @default Good (0x00000)
*/
this.statusCode = initialize_field(schema.fields[1], options.statusCode);
/**
* @property sourceTimestamp
* @type {DateTime}
* @default null
*/
this.sourceTimestamp = initialize_field(schema.fields[2], options.sourceTimestamp);
/**
* @property sourcePicoseconds
* @type {UInt16}
* @default 0
*/
this.sourcePicoseconds = initialize_field(schema.fields[3], options.sourcePicoseconds);
/**
this.value = (options.value) ? new Variant(options.value) : new Variant({ dataType: DataType.Null });
}
/**
* @property statusCode
* @type {StatusCode}
* @default Good (0x00000)
*/
this.statusCode = initialize_field(schema.fields[1], options.statusCode);
/**
* @property sourceTimestamp
* @type {DateTime}
* @default null
*/
this.sourceTimestamp = initialize_field(schema.fields[2], options.sourceTimestamp);
/**
* @property sourcePicoseconds
* @type {UInt16}
* @default 0
*/
this.sourcePicoseconds = initialize_field(schema.fields[3], options.sourcePicoseconds);
/**
* @property serverTimestamp
* @type {DateTime}
* @default null
*/
this.serverTimestamp = initialize_field(schema.fields[4], options.serverTimestamp);
/**