Type.registerNamespace('esnai.com.club.webservice');
esnai.com.club.webservice.SendMessage=function() {
esnai.com.club.webservice.SendMessage.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
esnai.com.club.webservice.SendMessage.prototype={
send:function(username,towho,msg,succeededCallback, failedCallback, userContext) {
return this._invoke(esnai.com.club.webservice.SendMessage.get_path(), 'send',false,{username:username,towho:towho,msg:msg},succeededCallback,failedCallback,userContext); }}
esnai.com.club.webservice.SendMessage.registerClass('esnai.com.club.webservice.SendMessage',Sys.Net.WebServiceProxy);
esnai.com.club.webservice.SendMessage._staticInstance = new esnai.com.club.webservice.SendMessage();
esnai.com.club.webservice.SendMessage.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; esnai.com.club.webservice.SendMessage._staticInstance._path = value; }
esnai.com.club.webservice.SendMessage.get_path = function() { return esnai.com.club.webservice.SendMessage._staticInstance._path; }
esnai.com.club.webservice.SendMessage.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); }
esnai.com.club.webservice.SendMessage._staticInstance._timeout = value; }
esnai.com.club.webservice.SendMessage.get_timeout = function() { 
return esnai.com.club.webservice.SendMessage._staticInstance._timeout; }
esnai.com.club.webservice.SendMessage.set_defaultUserContext = function(value) { 
esnai.com.club.webservice.SendMessage._staticInstance._userContext = value; }
esnai.com.club.webservice.SendMessage.get_defaultUserContext = function() { 
return esnai.com.club.webservice.SendMessage._staticInstance._userContext; }
esnai.com.club.webservice.SendMessage.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; esnai.com.club.webservice.SendMessage._staticInstance._succeeded = value; }
esnai.com.club.webservice.SendMessage.get_defaultSucceededCallback = function() { 
return esnai.com.club.webservice.SendMessage._staticInstance._succeeded; }
esnai.com.club.webservice.SendMessage.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; esnai.com.club.webservice.SendMessage._staticInstance._failed = value; }
esnai.com.club.webservice.SendMessage.get_defaultFailedCallback = function() { 
return esnai.com.club.webservice.SendMessage._staticInstance._failed; }
esnai.com.club.webservice.SendMessage.set_path("/club/asm/SendMessage.asmx");
esnai.com.club.webservice.SendMessage.send= function(username,towho,msg,onSuccess,onFailed,userContext) {esnai.com.club.webservice.SendMessage._staticInstance.send(username,towho,msg,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(esnai.com.club.webservice.MessageStatus) === 'undefined') {
esnai.com.club.webservice.MessageStatus=gtc("esnai.com.club.webservice.MessageStatus");
esnai.com.club.webservice.MessageStatus.registerClass('esnai.com.club.webservice.MessageStatus');
}
