if(typeof(X2O.X2OBaseItem) == 'undefined')
{
	throw('Cannot use this file unless you have included Base.js');
}

X2O.GetAllRecipesByStyleAndMinimumServingSizeCollectionVO = function(){};
X2O.GetAllRecipesByStyleAndMinimumServingSizeCollectionVO.Inherits(X2O.X2OBaseCollection);
X2O.GetAllRecipesByStyleAndMinimumServingSizeCollectionVO = function()
{
	this.Inherits(X2O.X2OBaseCollection,'X2O.GetAllRecipesByStyleAndMinimumServingSizeCollectionVO', 'X2O.GetAllRecipesByStyleAndMinimumServingSizeVO', 'customservices');
	
	/*PUBLIC METHODS*/
	this.load = function(minimumservingsize, styleid)
	{
		var service_uri = X2O.X2OManager.hostURL + this.serviceName + ".x2o?jsid=" + this.getUID();

		var request_vars = '&x2o_token=' + X2O.X2ORequest.getEncryptedRequestToken();
		request_vars += '&action=' + X2O.X2ORequest.encrypt('GetAllRecipesByStyleAndMinimumServingSize');
		request_vars += "&minimumservingsize=" + X2O.X2ORequest.encrypt(minimumservingsize).toString() + "&styleid=" + X2O.X2ORequest.encrypt(styleid).toString();
		
		service_uri += request_vars;
		
		try
		{
			this.jsonRequester = new JSONscriptRequest(service_uri);
			this.jsonRequester.buildScriptTag();
			this.jsonRequester.addScriptTag(); //make the call
		}
		catch (error)
		{
			this.callFaultHandler('A fault was dispatched from load: ' + error);
		}
	}
}






X2O.GetAllRecipesByStyleAndMinimumServingSizeVO = function(){};
X2O.GetAllRecipesByStyleAndMinimumServingSizeVO.Inherits(X2O.X2OBaseItem);	
X2O.GetAllRecipesByStyleAndMinimumServingSizeVO = function()
{	
	var _id;
var _name;
var _instructions;
var _servingsize;
var _picture;
var _relatedstyleid;
var _stylename;
	
	this.Inherits(X2O.X2OBaseItem, 'X2O.GetAllRecipesByStyleAndMinimumServingSizeVO', 'customservices',null);
	this.getID = function() { return _id; }
this.setID = function(_val) { _id = _val; }

this.getName = function() { return _name; }
this.setName = function(_val) { _name = _val; }

this.getInstructions = function() { return _instructions; }
this.setInstructions = function(_val) { _instructions = _val; }

this.getServingSize = function() { return _servingsize; }
this.setServingSize = function(_val) { _servingsize = _val; }

this.getPicture = function() { return _picture; }
this.setPicture = function(_val) { _picture = _val; }

this.getRelatedStyleID = function() { return _relatedstyleid; }
this.setRelatedStyleID = function(_val) { _relatedstyleid = _val; }

this.getStyleName = function() { return _stylename; }
this.setStyleName = function(_val) { _stylename = _val; }

}



