lib/message.js
function (type, args) {
	this.type = type;
	this.single = false;

	// Message is a 'multiple attribute message'.
	if (typeof args === 'object' || typeof args === 'undefined') {
		this.args = args || {};
	}
	// Message is a 'single attribute message'.
	else {
		this.single = true;
		this.args = args;
	}

	if (!this.single) {
		if (this.args.flowId) {
			this.arg('flowId', this.args.flowId);
		}
		else if (index.autoFlowId) {
			this.arg('flowId', Message.flowId);
		}
	}
}
function (type, args) {
	this.type = type;
	this.single = false;

	// Message is a 'multiple attribute message'.
	if (typeof args === 'object' || typeof args === 'undefined') {
		this.args = args || {};
	}
	// Message is a 'single attribute message'.
	else {
		this.single = true;
		this.args = args;
	}

	if (!this.single) {
		if (this.args.flowId) {
			this.arg('flowId', this.args.flowId);
		}
		else if (index.autoFlowId) {
			this.arg('flowId', Message.flowId);
		}
	}
}
function ( type , args ) { this . type = type ; this . single = false ; // Message is a 'multiple attribute message'. if ( typeof args === 'object' || typeof args === 'undefined' ) { this . args = args || { } ; } // Message is a 'single attribute message'. else { this . single = true ; this . args = args ; } if ( ! this . single ) { if ( this . args . flowId ) { this . arg ( 'flowId' , this . args . flowId ) ; } else if ( index . autoFlowId ) { this . arg ( 'flowId' , Message . flowId ) ; } } }
Constructs a message formatted for consumption by TeamCity.

@param {String} type
@param {Object} args
Constructs a message formatted for consumption by TeamCity .