var SendToFriend=function() {
SendToFriend.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SendToFriend.prototype={
SendMessage:function(Recipients,Subject,Message,BandName,Key,succeededCallback, failedCallback, userContext) {
return this._invoke(SendToFriend.get_path(), 'SendMessage',false,{Recipients:Recipients,Subject:Subject,Message:Message,BandName:BandName,Key:Key},succeededCallback,failedCallback,userContext); },
ValidateRecipients:function(Recipients,succeededCallback, failedCallback, userContext) {
return this._invoke(SendToFriend.get_path(), 'ValidateRecipients',false,{Recipients:Recipients},succeededCallback,failedCallback,userContext); }}
SendToFriend.registerClass('SendToFriend',Sys.Net.WebServiceProxy);
SendToFriend._staticInstance = new SendToFriend();
SendToFriend.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SendToFriend._staticInstance._path = value; }
SendToFriend.get_path = function() { return SendToFriend._staticInstance._path; }
SendToFriend.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); }
SendToFriend._staticInstance._timeout = value; }
SendToFriend.get_timeout = function() { 
return SendToFriend._staticInstance._timeout; }
SendToFriend.set_defaultUserContext = function(value) { 
SendToFriend._staticInstance._userContext = value; }
SendToFriend.get_defaultUserContext = function() { 
return SendToFriend._staticInstance._userContext; }
SendToFriend.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SendToFriend._staticInstance._succeeded = value; }
SendToFriend.get_defaultSucceededCallback = function() { 
return SendToFriend._staticInstance._succeeded; }
SendToFriend.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SendToFriend._staticInstance._failed = value; }
SendToFriend.get_defaultFailedCallback = function() { 
return SendToFriend._staticInstance._failed; }
SendToFriend.set_path("/WebService/SendToFriend.asmx");
SendToFriend.SendMessage= function(Recipients,Subject,Message,BandName,Key,onSuccess,onFailed,userContext) {SendToFriend._staticInstance.SendMessage(Recipients,Subject,Message,BandName,Key,onSuccess,onFailed,userContext); }
SendToFriend.ValidateRecipients= function(Recipients,onSuccess,onFailed,userContext) {SendToFriend._staticInstance.ValidateRecipients(Recipients,onSuccess,onFailed,userContext); }
