var AsyncMethods=function() {
AsyncMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AsyncMethods.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AsyncMethods._staticInstance.get_path();},
UpdateRecipeView:function(recipeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateRecipeView',false,{recipeId:recipeId},succeededCallback,failedCallback,userContext); },
UpdateProfileView:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateProfileView',false,{profileId:profileId},succeededCallback,failedCallback,userContext); },
AddRecipeTweakHelpfulVote:function(recipeTweakId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddRecipeTweakHelpfulVote',false,{recipeTweakId:recipeTweakId,userId:userId},succeededCallback,failedCallback,userContext); },
DeleteTag:function(tagId,recipeId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteTag',false,{tagId:tagId,recipeId:recipeId,userId:userId},succeededCallback,failedCallback,userContext); },
AddTag:function(recipeId,userId,tagName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddTag',false,{recipeId:recipeId,userId:userId,tagName:tagName},succeededCallback,failedCallback,userContext); },
DeleteTagByName:function(tagName,recipeId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteTagByName',false,{tagName:tagName,recipeId:recipeId,userId:userId},succeededCallback,failedCallback,userContext); },
UpdatePhotoView:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePhotoView',false,{photoId:photoId},succeededCallback,failedCallback,userContext); },
Login:function(userName,pass,rememberMe,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{userName:userName,pass:pass,rememberMe:rememberMe},succeededCallback,failedCallback,userContext); },
GetTagList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTagList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
IsRecipeTitleAvailable:function(recipeTitle,recipeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsRecipeTitleAvailable',false,{recipeTitle:recipeTitle,recipeId:recipeId},succeededCallback,failedCallback,userContext); },
AddToFavorites:function(recipeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToFavorites',false,{recipeId:recipeId},succeededCallback,failedCallback,userContext); },
GetFilteredWords:function(text,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFilteredWords',false,{text:text},succeededCallback,failedCallback,userContext); }}
AsyncMethods.registerClass('AsyncMethods',Sys.Net.WebServiceProxy);
AsyncMethods._staticInstance = new AsyncMethods();
AsyncMethods.set_path = function(value) { AsyncMethods._staticInstance.set_path(value); }
AsyncMethods.get_path = function() { return AsyncMethods._staticInstance.get_path(); }
AsyncMethods.set_timeout = function(value) { AsyncMethods._staticInstance.set_timeout(value); }
AsyncMethods.get_timeout = function() { return AsyncMethods._staticInstance.get_timeout(); }
AsyncMethods.set_defaultUserContext = function(value) { AsyncMethods._staticInstance.set_defaultUserContext(value); }
AsyncMethods.get_defaultUserContext = function() { return AsyncMethods._staticInstance.get_defaultUserContext(); }
AsyncMethods.set_defaultSucceededCallback = function(value) { AsyncMethods._staticInstance.set_defaultSucceededCallback(value); }
AsyncMethods.get_defaultSucceededCallback = function() { return AsyncMethods._staticInstance.get_defaultSucceededCallback(); }
AsyncMethods.set_defaultFailedCallback = function(value) { AsyncMethods._staticInstance.set_defaultFailedCallback(value); }
AsyncMethods.get_defaultFailedCallback = function() { return AsyncMethods._staticInstance.get_defaultFailedCallback(); }
AsyncMethods.set_path("/Ajax/AsyncMethods.asmx");
AsyncMethods.UpdateRecipeView= function(recipeId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.UpdateRecipeView(recipeId,onSuccess,onFailed,userContext); }
AsyncMethods.UpdateProfileView= function(profileId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.UpdateProfileView(profileId,onSuccess,onFailed,userContext); }
AsyncMethods.AddRecipeTweakHelpfulVote= function(recipeTweakId,userId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.AddRecipeTweakHelpfulVote(recipeTweakId,userId,onSuccess,onFailed,userContext); }
AsyncMethods.DeleteTag= function(tagId,recipeId,userId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.DeleteTag(tagId,recipeId,userId,onSuccess,onFailed,userContext); }
AsyncMethods.AddTag= function(recipeId,userId,tagName,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.AddTag(recipeId,userId,tagName,onSuccess,onFailed,userContext); }
AsyncMethods.DeleteTagByName= function(tagName,recipeId,userId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.DeleteTagByName(tagName,recipeId,userId,onSuccess,onFailed,userContext); }
AsyncMethods.UpdatePhotoView= function(photoId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.UpdatePhotoView(photoId,onSuccess,onFailed,userContext); }
AsyncMethods.Login= function(userName,pass,rememberMe,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.Login(userName,pass,rememberMe,onSuccess,onFailed,userContext); }
AsyncMethods.GetTagList= function(prefixText,count,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.GetTagList(prefixText,count,onSuccess,onFailed,userContext); }
AsyncMethods.IsRecipeTitleAvailable= function(recipeTitle,recipeId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.IsRecipeTitleAvailable(recipeTitle,recipeId,onSuccess,onFailed,userContext); }
AsyncMethods.AddToFavorites= function(recipeId,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.AddToFavorites(recipeId,onSuccess,onFailed,userContext); }
AsyncMethods.GetFilteredWords= function(text,onSuccess,onFailed,userContext) {AsyncMethods._staticInstance.GetFilteredWords(text,onSuccess,onFailed,userContext); }
