var AsyncMethods=function() {
AsyncMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AsyncMethods.prototype={
UpdateRecipeView:function(recipeId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'UpdateRecipeView',false,{recipeId:recipeId},succeededCallback,failedCallback,userContext); },
UpdateProfileView:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'UpdateProfileView',false,{profileId:profileId},succeededCallback,failedCallback,userContext); },
AddRecipeTweakHelpfulVote:function(recipeTweakId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'AddRecipeTweakHelpfulVote',false,{recipeTweakId:recipeTweakId,userId:userId},succeededCallback,failedCallback,userContext); },
DeleteTag:function(tagId,recipeId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'DeleteTag',false,{tagId:tagId,recipeId:recipeId,userId:userId},succeededCallback,failedCallback,userContext); },
AddTag:function(recipeId,userId,tagName,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'AddTag',false,{recipeId:recipeId,userId:userId,tagName:tagName},succeededCallback,failedCallback,userContext); },
DeleteTagByName:function(tagName,recipeId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'DeleteTagByName',false,{tagName:tagName,recipeId:recipeId,userId:userId},succeededCallback,failedCallback,userContext); },
UpdatePhotoView:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(AsyncMethods.get_path(), 'UpdatePhotoView',false,{photoId:photoId},succeededCallback,failedCallback,userContext); }}
AsyncMethods.registerClass('AsyncMethods',Sys.Net.WebServiceProxy);
AsyncMethods._staticInstance = new AsyncMethods();
AsyncMethods.set_path = function(value) { AsyncMethods._staticInstance._path = value; }
AsyncMethods.get_path = function() { return AsyncMethods._staticInstance._path; }
AsyncMethods.set_timeout = function(value) { AsyncMethods._staticInstance._timeout = value; }
AsyncMethods.get_timeout = function() { return AsyncMethods._staticInstance._timeout; }
AsyncMethods.set_defaultUserContext = function(value) { AsyncMethods._staticInstance._userContext = value; }
AsyncMethods.get_defaultUserContext = function() { return AsyncMethods._staticInstance._userContext; }
AsyncMethods.set_defaultSucceededCallback = function(value) { AsyncMethods._staticInstance._succeeded = value; }
AsyncMethods.get_defaultSucceededCallback = function() { return AsyncMethods._staticInstance._succeeded; }
AsyncMethods.set_defaultFailedCallback = function(value) { AsyncMethods._staticInstance._failed = value; }
AsyncMethods.get_defaultFailedCallback = function() { return AsyncMethods._staticInstance._failed; }
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); }
