var ChatService=function() {
ChatService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ChatService.prototype={
UpdateAvaliable:function(Operations,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatService.get_path(), 'UpdateAvaliable',false,{Operations:Operations},succeededCallback,failedCallback,userContext); },
GetChat:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ChatService.get_path(), 'GetChat',false,{},succeededCallback,failedCallback,userContext); },
SendMessage:function(User,UserName,Message,t,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatService.get_path(), 'SendMessage',false,{User:User,UserName:UserName,Message:Message,t:t},succeededCallback,failedCallback,userContext); }}
ChatService.registerClass('ChatService',Sys.Net.WebServiceProxy);
ChatService._staticInstance = new ChatService();
ChatService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ChatService._staticInstance._path = value; }
ChatService.get_path = function() { return ChatService._staticInstance._path; }
ChatService.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); }
ChatService._staticInstance._timeout = value; }
ChatService.get_timeout = function() { 
return ChatService._staticInstance._timeout; }
ChatService.set_defaultUserContext = function(value) { 
ChatService._staticInstance._userContext = value; }
ChatService.get_defaultUserContext = function() { 
return ChatService._staticInstance._userContext; }
ChatService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ChatService._staticInstance._succeeded = value; }
ChatService.get_defaultSucceededCallback = function() { 
return ChatService._staticInstance._succeeded; }
ChatService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ChatService._staticInstance._failed = value; }
ChatService.get_defaultFailedCallback = function() { 
return ChatService._staticInstance._failed; }
ChatService.set_path("/ChatService.asmx");
ChatService.UpdateAvaliable= function(Operations,onSuccess,onFailed,userContext) {ChatService._staticInstance.UpdateAvaliable(Operations,onSuccess,onFailed,userContext); }
ChatService.GetChat= function(onSuccess,onFailed,userContext) {ChatService._staticInstance.GetChat(onSuccess,onFailed,userContext); }
ChatService.SendMessage= function(User,UserName,Message,t,onSuccess,onFailed,userContext) {ChatService._staticInstance.SendMessage(User,UserName,Message,t,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(ChatService_ChatReply) === 'undefined') {
var ChatService_ChatReply=gtc("ChatService+ChatReply");
ChatService_ChatReply.registerClass('ChatService_ChatReply');
}
