Type.registerNamespace('AjaxWebServices');
AjaxWebServices.WebChatService=function() {
AjaxWebServices.WebChatService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AjaxWebServices.WebChatService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AjaxWebServices.WebChatService._staticInstance.get_path();},
CloseChatRoom:function(userName,succeededCallback, failedCallback, userContext) {
/// <param name="userName" 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(), 'CloseChatRoom',false,{userName:userName},succeededCallback,failedCallback,userContext); },
FinishChat:function(userName,succeededCallback, failedCallback, userContext) {
/// <param name="userName" 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(), 'FinishChat',false,{userName:userName},succeededCallback,failedCallback,userContext); },
UpdateChatRoom:function(lastMessageID,userName,succeededCallback, failedCallback, userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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(), 'UpdateChatRoom',false,{lastMessageID:lastMessageID,userName:userName},succeededCallback,failedCallback,userContext); },
UpdateSmallChatRoom:function(lastMessageID,userName,succeededCallback, failedCallback, userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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(), 'UpdateSmallChatRoom',false,{lastMessageID:lastMessageID,userName:userName},succeededCallback,failedCallback,userContext); },
UpdateChat:function(lastMessageID,userName,succeededCallback, failedCallback, userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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(), 'UpdateChat',false,{lastMessageID:lastMessageID,userName:userName},succeededCallback,failedCallback,userContext); },
SendChatMessage:function(message,userName,offerID,succeededCallback, failedCallback, userContext) {
/// <param name="message" type="String">System.String</param>
/// <param name="userName" type="String">System.String</param>
/// <param name="offerID" type="Number">System.Int32</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(), 'SendChatMessage',false,{message:message,userName:userName,offerID:offerID},succeededCallback,failedCallback,userContext); },
SendChatRoomMessage:function(message,userName,succeededCallback, failedCallback, userContext) {
/// <param name="message" type="String">System.String</param>
/// <param name="userName" 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(), 'SendChatRoomMessage',false,{message:message,userName:userName},succeededCallback,failedCallback,userContext); }}
AjaxWebServices.WebChatService.registerClass('AjaxWebServices.WebChatService',Sys.Net.WebServiceProxy);
AjaxWebServices.WebChatService._staticInstance = new AjaxWebServices.WebChatService();
AjaxWebServices.WebChatService.set_path = function(value) {
AjaxWebServices.WebChatService._staticInstance.set_path(value); }
AjaxWebServices.WebChatService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return AjaxWebServices.WebChatService._staticInstance.get_path();}
AjaxWebServices.WebChatService.set_timeout = function(value) {
AjaxWebServices.WebChatService._staticInstance.set_timeout(value); }
AjaxWebServices.WebChatService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return AjaxWebServices.WebChatService._staticInstance.get_timeout(); }
AjaxWebServices.WebChatService.set_defaultUserContext = function(value) { 
AjaxWebServices.WebChatService._staticInstance.set_defaultUserContext(value); }
AjaxWebServices.WebChatService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return AjaxWebServices.WebChatService._staticInstance.get_defaultUserContext(); }
AjaxWebServices.WebChatService.set_defaultSucceededCallback = function(value) { 
 AjaxWebServices.WebChatService._staticInstance.set_defaultSucceededCallback(value); }
AjaxWebServices.WebChatService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return AjaxWebServices.WebChatService._staticInstance.get_defaultSucceededCallback(); }
AjaxWebServices.WebChatService.set_defaultFailedCallback = function(value) { 
AjaxWebServices.WebChatService._staticInstance.set_defaultFailedCallback(value); }
AjaxWebServices.WebChatService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return AjaxWebServices.WebChatService._staticInstance.get_defaultFailedCallback(); }
AjaxWebServices.WebChatService.set_path("/WebServices/WebChatService.asmx");
AjaxWebServices.WebChatService.CloseChatRoom= function(userName,onSuccess,onFailed,userContext) {
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.CloseChatRoom(userName,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.FinishChat= function(userName,onSuccess,onFailed,userContext) {
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.FinishChat(userName,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.UpdateChatRoom= function(lastMessageID,userName,onSuccess,onFailed,userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.UpdateChatRoom(lastMessageID,userName,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.UpdateSmallChatRoom= function(lastMessageID,userName,onSuccess,onFailed,userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.UpdateSmallChatRoom(lastMessageID,userName,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.UpdateChat= function(lastMessageID,userName,onSuccess,onFailed,userContext) {
/// <param name="lastMessageID" type="String">System.String</param>
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.UpdateChat(lastMessageID,userName,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.SendChatMessage= function(message,userName,offerID,onSuccess,onFailed,userContext) {
/// <param name="message" type="String">System.String</param>
/// <param name="userName" type="String">System.String</param>
/// <param name="offerID" type="Number">System.Int32</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>
AjaxWebServices.WebChatService._staticInstance.SendChatMessage(message,userName,offerID,onSuccess,onFailed,userContext); }
AjaxWebServices.WebChatService.SendChatRoomMessage= function(message,userName,onSuccess,onFailed,userContext) {
/// <param name="message" type="String">System.String</param>
/// <param name="userName" 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>
AjaxWebServices.WebChatService._staticInstance.SendChatRoomMessage(message,userName,onSuccess,onFailed,userContext); }
