Type.registerNamespace('Searches.Ajax.TellAFriend');
Searches.Ajax.TellAFriend.Service=function() {
Searches.Ajax.TellAFriend.Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Searches.Ajax.TellAFriend.Service.prototype={
AJAX_SendEmail:function(sMessage,sUrl,sTitle,sSenderEmail,sRecipientEmail,sCredentials,succeededCallback, failedCallback, userContext) {
return this._invoke(Searches.Ajax.TellAFriend.Service.get_path(), 'AJAX_SendEmail',false,{sMessage:sMessage,sUrl:sUrl,sTitle:sTitle,sSenderEmail:sSenderEmail,sRecipientEmail:sRecipientEmail,sCredentials:sCredentials},succeededCallback,failedCallback,userContext); }}
Searches.Ajax.TellAFriend.Service.registerClass('Searches.Ajax.TellAFriend.Service',Sys.Net.WebServiceProxy);
Searches.Ajax.TellAFriend.Service._staticInstance = new Searches.Ajax.TellAFriend.Service();
Searches.Ajax.TellAFriend.Service.set_path = function(value) { Searches.Ajax.TellAFriend.Service._staticInstance._path = value; }
Searches.Ajax.TellAFriend.Service.get_path = function() { return Searches.Ajax.TellAFriend.Service._staticInstance._path; }
Searches.Ajax.TellAFriend.Service.set_timeout = function(value) { Searches.Ajax.TellAFriend.Service._staticInstance._timeout = value; }
Searches.Ajax.TellAFriend.Service.get_timeout = function() { return Searches.Ajax.TellAFriend.Service._staticInstance._timeout; }
Searches.Ajax.TellAFriend.Service.set_defaultUserContext = function(value) { Searches.Ajax.TellAFriend.Service._staticInstance._userContext = value; }
Searches.Ajax.TellAFriend.Service.get_defaultUserContext = function() { return Searches.Ajax.TellAFriend.Service._staticInstance._userContext; }
Searches.Ajax.TellAFriend.Service.set_defaultSucceededCallback = function(value) { Searches.Ajax.TellAFriend.Service._staticInstance._succeeded = value; }
Searches.Ajax.TellAFriend.Service.get_defaultSucceededCallback = function() { return Searches.Ajax.TellAFriend.Service._staticInstance._succeeded; }
Searches.Ajax.TellAFriend.Service.set_defaultFailedCallback = function(value) { Searches.Ajax.TellAFriend.Service._staticInstance._failed = value; }
Searches.Ajax.TellAFriend.Service.get_defaultFailedCallback = function() { return Searches.Ajax.TellAFriend.Service._staticInstance._failed; }
Searches.Ajax.TellAFriend.Service.set_path("/Services/Ajax/TellAFriend.asmx");
Searches.Ajax.TellAFriend.Service.AJAX_SendEmail= function(sMessage,sUrl,sTitle,sSenderEmail,sRecipientEmail,sCredentials,onSuccess,onFailed,userContext) {Searches.Ajax.TellAFriend.Service._staticInstance.AJAX_SendEmail(sMessage,sUrl,sTitle,sSenderEmail,sRecipientEmail,sCredentials,onSuccess,onFailed,userContext); }
