Type.registerNamespace('SCOTT.CSC.Tools');
SCOTT.CSC.Tools.GroceryListService=function() {
SCOTT.CSC.Tools.GroceryListService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SCOTT.CSC.Tools.GroceryListService.prototype={
GetGroceryAisles:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryAisles',false,{},succeededCallback,failedCallback,userContext); },
GetSharedGroceryItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetSharedGroceryItems',false,{},succeededCallback,failedCallback,userContext); },
GetCustomGroceryItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetCustomGroceryItems',false,{},succeededCallback,failedCallback,userContext); },
GetGroceryListItem:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryListItem',false,{},succeededCallback,failedCallback,userContext); },
GetGroceryList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryList',false,{},succeededCallback,failedCallback,userContext); },
SaveGroceryList:function(list,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'SaveGroceryList',false,{list:list},succeededCallback,failedCallback,userContext); },
DeleteGroceryList:function(list,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'DeleteGroceryList',false,{list:list},succeededCallback,failedCallback,userContext); },
SaveGroceryItem:function(item,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'SaveGroceryItem',false,{item:item},succeededCallback,failedCallback,userContext); },
GetGroceryLists:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryLists',false,{},succeededCallback,failedCallback,userContext); },
GetGroceryListsCount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryListsCount',false,{},succeededCallback,failedCallback,userContext); },
GetGroceryListByIndex:function(index,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'GetGroceryListByIndex',false,{index:index},succeededCallback,failedCallback,userContext); },
EmailGroceryList:function(list,toName,toEmail,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'EmailGroceryList',false,{list:list,toName:toName,toEmail:toEmail,comment:comment},succeededCallback,failedCallback,userContext); },
TestCreateManyLists:function(maxLists,maxItems,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'TestCreateManyLists',false,{maxLists:maxLists,maxItems:maxItems},succeededCallback,failedCallback,userContext); },
TestListItem:function(listItem,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'TestListItem',false,{listItem:listItem},succeededCallback,failedCallback,userContext); },
TestListItemCollection:function(listItems,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'TestListItemCollection',false,{listItems:listItems},succeededCallback,failedCallback,userContext); },
TestList:function(list,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GroceryListService.get_path(), 'TestList',false,{list:list},succeededCallback,failedCallback,userContext); }}
SCOTT.CSC.Tools.GroceryListService.registerClass('SCOTT.CSC.Tools.GroceryListService',Sys.Net.WebServiceProxy);
SCOTT.CSC.Tools.GroceryListService._staticInstance = new SCOTT.CSC.Tools.GroceryListService();
SCOTT.CSC.Tools.GroceryListService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SCOTT.CSC.Tools.GroceryListService._staticInstance._path = value; }
SCOTT.CSC.Tools.GroceryListService.get_path = function() { return SCOTT.CSC.Tools.GroceryListService._staticInstance._path; }
SCOTT.CSC.Tools.GroceryListService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
SCOTT.CSC.Tools.GroceryListService._staticInstance._timeout = value; }
SCOTT.CSC.Tools.GroceryListService.get_timeout = function() { 
return SCOTT.CSC.Tools.GroceryListService._staticInstance._timeout; }
SCOTT.CSC.Tools.GroceryListService.set_defaultUserContext = function(value) { 
SCOTT.CSC.Tools.GroceryListService._staticInstance._userContext = value; }
SCOTT.CSC.Tools.GroceryListService.get_defaultUserContext = function() { 
return SCOTT.CSC.Tools.GroceryListService._staticInstance._userContext; }
SCOTT.CSC.Tools.GroceryListService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SCOTT.CSC.Tools.GroceryListService._staticInstance._succeeded = value; }
SCOTT.CSC.Tools.GroceryListService.get_defaultSucceededCallback = function() { 
return SCOTT.CSC.Tools.GroceryListService._staticInstance._succeeded; }
SCOTT.CSC.Tools.GroceryListService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SCOTT.CSC.Tools.GroceryListService._staticInstance._failed = value; }
SCOTT.CSC.Tools.GroceryListService.get_defaultFailedCallback = function() { 
return SCOTT.CSC.Tools.GroceryListService._staticInstance._failed; }
SCOTT.CSC.Tools.GroceryListService.set_path("/Services/Tools/GroceryListService.asmx");
SCOTT.CSC.Tools.GroceryListService.GetGroceryAisles= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryAisles(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetSharedGroceryItems= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetSharedGroceryItems(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetCustomGroceryItems= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetCustomGroceryItems(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetGroceryListItem= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryListItem(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetGroceryList= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryList(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.SaveGroceryList= function(list,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.SaveGroceryList(list,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.DeleteGroceryList= function(list,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.DeleteGroceryList(list,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.SaveGroceryItem= function(item,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.SaveGroceryItem(item,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetGroceryLists= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryLists(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetGroceryListsCount= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryListsCount(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.GetGroceryListByIndex= function(index,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.GetGroceryListByIndex(index,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.EmailGroceryList= function(list,toName,toEmail,comment,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.EmailGroceryList(list,toName,toEmail,comment,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.TestCreateManyLists= function(maxLists,maxItems,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.TestCreateManyLists(maxLists,maxItems,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.TestListItem= function(listItem,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.TestListItem(listItem,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.TestListItemCollection= function(listItems,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.TestListItemCollection(listItems,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GroceryListService.TestList= function(list,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GroceryListService._staticInstance.TestList(list,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SCOTT.CSC.Model.Tools.GroceryList');
if (typeof(SCOTT.CSC.Model.Tools.GroceryList.ListItem) === 'undefined') {
SCOTT.CSC.Model.Tools.GroceryList.ListItem=gtc("SCOTT.CSC.Model.Tools.GroceryList.ListItem");
SCOTT.CSC.Model.Tools.GroceryList.ListItem.registerClass('SCOTT.CSC.Model.Tools.GroceryList.ListItem');
}
if (typeof(SCOTT.CSC.Model.Tools.GroceryList.List) === 'undefined') {
SCOTT.CSC.Model.Tools.GroceryList.List=gtc("SCOTT.CSC.Model.Tools.GroceryList.List");
SCOTT.CSC.Model.Tools.GroceryList.List.registerClass('SCOTT.CSC.Model.Tools.GroceryList.List');
}
if (typeof(SCOTT.CSC.Model.Tools.GroceryList.Item) === 'undefined') {
SCOTT.CSC.Model.Tools.GroceryList.Item=gtc("SCOTT.CSC.Model.Tools.GroceryList.Item");
SCOTT.CSC.Model.Tools.GroceryList.Item.registerClass('SCOTT.CSC.Model.Tools.GroceryList.Item');
}
