/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
/**
* @constructor
* @memberof order
*/
var FireOrder = function() {
this._class_ = FireOrder;
this.id = undefined;
this.orderId = undefined;
this.delay = undefined;
};
/**
* Set the field value
* Unique identifier
*
* @memberof order.FireOrder
* @param {String} id
*/
FireOrder.prototype.setId = function(id) {
this.id = id;
};
/**
* Get the field value
* Unique identifier
* @memberof order.FireOrder
* @return {String}
*/
FireOrder.prototype.getId = function() {
return this.id;
};
/**
* Set the field value
* The id of the order to fire.
*
* @memberof order.FireOrder
* @param {String} orderId
*/
FireOrder.prototype.setOrderId = function(orderId) {
this.orderId = orderId;
};
/**
* Get the field value
* The id of the order to fire.
* @memberof order.FireOrder
* @return {String}
*/
FireOrder.prototype.getOrderId = function() {
return this.orderId;
};
/**
* Set the field value
* How long in seconds to wait before calling fire.
*
* @memberof order.FireOrder
* @param {Number} delay must be a long integer
*/
FireOrder.prototype.setDelay = function(delay) {
this.delay = delay;
};
/**
* Get the field value
* How long in seconds to wait before calling fire.
* @memberof order.FireOrder
* @return {Number} must be a long integer
*/
FireOrder.prototype.getDelay = function() {
return this.delay;
};
/**
* @memberof order.FireOrder
* @private
*/
FireOrder.prototype.getMetaInfo = function(fieldName) {
var curclass = this._class_;
do {
var fieldMetaInfo = curclass._meta_.fields[fieldName];
if(fieldMetaInfo) {
return fieldMetaInfo;
}
if(curclass._meta_._superMeta_) {
curclass = curclass._meta_._superMeta_._class_;
} else {
curclass = null;
}
} while(curclass);
return null;
};
FireOrder.prototype.toString = function() {
return JSON.stringify(this);
};
FireOrder._meta_ = {fields: {}};
FireOrder._meta_._class_ = FireOrder;
FireOrder._meta_.fields["id"] = {};
FireOrder._meta_.fields["id"].type = String;
FireOrder._meta_.fields["orderId"] = {};
FireOrder._meta_.fields["orderId"].type = String;
FireOrder._meta_.fields["delay"] = {};
FireOrder._meta_.fields["delay"].type = Number;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = FireOrder;
}