var wsChat=function() {
wsChat.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
wsChat.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return wsChat._staticInstance.get_path();},
fillChat:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'fillChat',false,{},succeededCallback,failedCallback,userContext); },
GetUsers:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetUsers',false,{},succeededCallback,failedCallback,userContext); },
GetUsersCount:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetUsersCount',false,{},succeededCallback,failedCallback,userContext); },
GetCurrentUser:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetCurrentUser',false,{},succeededCallback,failedCallback,userContext); },
SendMessage:function(text,ToUser,succeededCallback, failedCallback, userContext) {
/// <param name="text" type="String">System.String</param>
/// <param name="ToUser" 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(), 'SendMessage',false,{text:text,ToUser:ToUser},succeededCallback,failedCallback,userContext); },
CreateRoom:function(RoomName,succeededCallback, failedCallback, userContext) {
/// <param name="RoomName" 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(), 'CreateRoom',false,{RoomName:RoomName},succeededCallback,failedCallback,userContext); },
GetRooms:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetRooms',false,{},succeededCallback,failedCallback,userContext); }}
wsChat.registerClass('wsChat',Sys.Net.WebServiceProxy);
wsChat._staticInstance = new wsChat();
wsChat.set_path = function(value) {
wsChat._staticInstance.set_path(value); }
wsChat.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return wsChat._staticInstance.get_path();}
wsChat.set_timeout = function(value) {
wsChat._staticInstance.set_timeout(value); }
wsChat.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return wsChat._staticInstance.get_timeout(); }
wsChat.set_defaultUserContext = function(value) { 
wsChat._staticInstance.set_defaultUserContext(value); }
wsChat.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return wsChat._staticInstance.get_defaultUserContext(); }
wsChat.set_defaultSucceededCallback = function(value) { 
 wsChat._staticInstance.set_defaultSucceededCallback(value); }
wsChat.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return wsChat._staticInstance.get_defaultSucceededCallback(); }
wsChat.set_defaultFailedCallback = function(value) { 
wsChat._staticInstance.set_defaultFailedCallback(value); }
wsChat.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return wsChat._staticInstance.get_defaultFailedCallback(); }
wsChat.set_path("/chat/wsChat.asmx");
wsChat.fillChat= function(onSuccess,onFailed,userContext) {
/// <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>
wsChat._staticInstance.fillChat(onSuccess,onFailed,userContext); }
wsChat.GetUsers= function(onSuccess,onFailed,userContext) {
/// <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>
wsChat._staticInstance.GetUsers(onSuccess,onFailed,userContext); }
wsChat.GetUsersCount= function(onSuccess,onFailed,userContext) {
/// <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>
wsChat._staticInstance.GetUsersCount(onSuccess,onFailed,userContext); }
wsChat.GetCurrentUser= function(onSuccess,onFailed,userContext) {
/// <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>
wsChat._staticInstance.GetCurrentUser(onSuccess,onFailed,userContext); }
wsChat.SendMessage= function(text,ToUser,onSuccess,onFailed,userContext) {
/// <param name="text" type="String">System.String</param>
/// <param name="ToUser" 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>
wsChat._staticInstance.SendMessage(text,ToUser,onSuccess,onFailed,userContext); }
wsChat.CreateRoom= function(RoomName,onSuccess,onFailed,userContext) {
/// <param name="RoomName" 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>
wsChat._staticInstance.CreateRoom(RoomName,onSuccess,onFailed,userContext); }
wsChat.GetRooms= function(onSuccess,onFailed,userContext) {
/// <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>
wsChat._staticInstance.GetRooms(onSuccess,onFailed,userContext); }

