var ChatService=function() {
ChatService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ChatService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ChatService._staticInstance.get_path();},
RemoveChatSession:function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,succeededCallback, failedCallback, userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveChatSession',false,{KeyOfLoggedInUser:KeyOfLoggedInUser,SessionIdOfAnonymousUser:SessionIdOfAnonymousUser},succeededCallback,failedCallback,userContext); },
IsChatAvailable:function(KeyOfLoggedInUser,SessionIdOfLoggedInUser,succeededCallback, failedCallback, userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfLoggedInUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'IsChatAvailable',false,{KeyOfLoggedInUser:KeyOfLoggedInUser,SessionIdOfLoggedInUser:SessionIdOfLoggedInUser},succeededCallback,failedCallback,userContext); },
SendChatText:function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,ChatTextToSend,broker,succeededCallback, failedCallback, userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="ChatTextToSend" type="String">System.String</param>
/// <param name="broker" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendChatText',false,{KeyOfLoggedInUser:KeyOfLoggedInUser,SessionIdOfAnonymousUser:SessionIdOfAnonymousUser,ChatTextToSend:ChatTextToSend,broker:broker},succeededCallback,failedCallback,userContext); },
ReceiveChatText:function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,succeededCallback, failedCallback, userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ReceiveChatText',false,{KeyOfLoggedInUser:KeyOfLoggedInUser,SessionIdOfAnonymousUser:SessionIdOfAnonymousUser},succeededCallback,failedCallback,userContext); },
ReceiveChatTextAgent:function(KeyOfLoggedInUser,SessionIdOfLoggedInUser,succeededCallback, failedCallback, userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfLoggedInUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ReceiveChatTextAgent',false,{KeyOfLoggedInUser:KeyOfLoggedInUser,SessionIdOfLoggedInUser:SessionIdOfLoggedInUser},succeededCallback,failedCallback,userContext); }}
ChatService.registerClass('ChatService',Sys.Net.WebServiceProxy);
ChatService._staticInstance = new ChatService();
ChatService.set_path = function(value) {
ChatService._staticInstance.set_path(value); }
ChatService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return ChatService._staticInstance.get_path();}
ChatService.set_timeout = function(value) {
ChatService._staticInstance.set_timeout(value); }
ChatService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return ChatService._staticInstance.get_timeout(); }
ChatService.set_defaultUserContext = function(value) { 
ChatService._staticInstance.set_defaultUserContext(value); }
ChatService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return ChatService._staticInstance.get_defaultUserContext(); }
ChatService.set_defaultSucceededCallback = function(value) { 
 ChatService._staticInstance.set_defaultSucceededCallback(value); }
ChatService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return ChatService._staticInstance.get_defaultSucceededCallback(); }
ChatService.set_defaultFailedCallback = function(value) { 
ChatService._staticInstance.set_defaultFailedCallback(value); }
ChatService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return ChatService._staticInstance.get_defaultFailedCallback(); }
ChatService.set_path("/ChatService.asmx");
ChatService.RemoveChatSession= function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,onSuccess,onFailed,userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ChatService._staticInstance.RemoveChatSession(KeyOfLoggedInUser,SessionIdOfAnonymousUser,onSuccess,onFailed,userContext); }
ChatService.IsChatAvailable= function(KeyOfLoggedInUser,SessionIdOfLoggedInUser,onSuccess,onFailed,userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfLoggedInUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ChatService._staticInstance.IsChatAvailable(KeyOfLoggedInUser,SessionIdOfLoggedInUser,onSuccess,onFailed,userContext); }
ChatService.SendChatText= function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,ChatTextToSend,broker,onSuccess,onFailed,userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="ChatTextToSend" type="String">System.String</param>
/// <param name="broker" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ChatService._staticInstance.SendChatText(KeyOfLoggedInUser,SessionIdOfAnonymousUser,ChatTextToSend,broker,onSuccess,onFailed,userContext); }
ChatService.ReceiveChatText= function(KeyOfLoggedInUser,SessionIdOfAnonymousUser,onSuccess,onFailed,userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfAnonymousUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ChatService._staticInstance.ReceiveChatText(KeyOfLoggedInUser,SessionIdOfAnonymousUser,onSuccess,onFailed,userContext); }
ChatService.ReceiveChatTextAgent= function(KeyOfLoggedInUser,SessionIdOfLoggedInUser,onSuccess,onFailed,userContext) {
/// <param name="KeyOfLoggedInUser" type="String">System.String</param>
/// <param name="SessionIdOfLoggedInUser" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ChatService._staticInstance.ReceiveChatTextAgent(KeyOfLoggedInUser,SessionIdOfLoggedInUser,onSuccess,onFailed,userContext); }

