var ChatWS=function() {
ChatWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ChatWS.prototype={
DeleteItem:function(clientID,itemID,userID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatWS.get_path(), 'DeleteItem',false,{clientID:clientID,itemID:itemID,userID:userID},succeededCallback,failedCallback,userContext); },
ReplyTopic:function(clientID,topicID,curRoundID,txt,userID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatWS.get_path(), 'ReplyTopic',false,{clientID:clientID,topicID:topicID,curRoundID:curRoundID,txt:txt,userID:userID},succeededCallback,failedCallback,userContext); },
ReplyItem:function(clientID,topicID,itemID,curRoundID,txt,userID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatWS.get_path(), 'ReplyItem',false,{clientID:clientID,topicID:topicID,itemID:itemID,curRoundID:curRoundID,txt:txt,userID:userID},succeededCallback,failedCallback,userContext); },
EditItem:function(clientID,itemID,txt,succeededCallback, failedCallback, userContext) {
return this._invoke(ChatWS.get_path(), 'EditItem',false,{clientID:clientID,itemID:itemID,txt:txt},succeededCallback,failedCallback,userContext); }}
ChatWS.registerClass('ChatWS',Sys.Net.WebServiceProxy);
ChatWS._staticInstance = new ChatWS();
ChatWS.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ChatWS._staticInstance._path = value; }
ChatWS.get_path = function() { return ChatWS._staticInstance._path; }
ChatWS.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); }
ChatWS._staticInstance._timeout = value; }
ChatWS.get_timeout = function() { 
return ChatWS._staticInstance._timeout; }
ChatWS.set_defaultUserContext = function(value) { 
ChatWS._staticInstance._userContext = value; }
ChatWS.get_defaultUserContext = function() { 
return ChatWS._staticInstance._userContext; }
ChatWS.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ChatWS._staticInstance._succeeded = value; }
ChatWS.get_defaultSucceededCallback = function() { 
return ChatWS._staticInstance._succeeded; }
ChatWS.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ChatWS._staticInstance._failed = value; }
ChatWS.get_defaultFailedCallback = function() { 
return ChatWS._staticInstance._failed; }
ChatWS.set_path("/WebServices/ChatWS.asmx");
ChatWS.DeleteItem= function(clientID,itemID,userID,onSuccess,onFailed,userContext) {ChatWS._staticInstance.DeleteItem(clientID,itemID,userID,onSuccess,onFailed,userContext); }
ChatWS.ReplyTopic= function(clientID,topicID,curRoundID,txt,userID,onSuccess,onFailed,userContext) {ChatWS._staticInstance.ReplyTopic(clientID,topicID,curRoundID,txt,userID,onSuccess,onFailed,userContext); }
ChatWS.ReplyItem= function(clientID,topicID,itemID,curRoundID,txt,userID,onSuccess,onFailed,userContext) {ChatWS._staticInstance.ReplyItem(clientID,topicID,itemID,curRoundID,txt,userID,onSuccess,onFailed,userContext); }
ChatWS.EditItem= function(clientID,itemID,txt,onSuccess,onFailed,userContext) {ChatWS._staticInstance.EditItem(clientID,itemID,txt,onSuccess,onFailed,userContext); }

