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();},
EnableChat:function(enable,succeededCallback, failedCallback, userContext) {
/// <param name="enable" 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(), 'EnableChat',false,{enable:enable},succeededCallback,failedCallback,userContext); },
SelectNewMessages:function(lastId,sessionId,adminPage,succeededCallback, failedCallback, userContext) {
/// <param name="lastId" type="Number">System.Int32</param>
/// <param name="sessionId" type="String">System.String</param>
/// <param name="adminPage" 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(), 'SelectNewMessages',false,{lastId:lastId,sessionId:sessionId,adminPage:adminPage},succeededCallback,failedCallback,userContext); },
Insert:function(sessionId,fromAdmin,pageUrl,message,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="String">System.String</param>
/// <param name="fromAdmin" type="Boolean">System.Boolean</param>
/// <param name="pageUrl" type="String">System.String</param>
/// <param name="message" 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(), 'Insert',false,{sessionId:sessionId,fromAdmin:fromAdmin,pageUrl:pageUrl,message:message},succeededCallback,failedCallback,userContext); },
GetLastId: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(), 'GetLastId',false,{},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("/Chat/ChatService.asmx");
ChatService.EnableChat= function(enable,onSuccess,onFailed,userContext) {
/// <param name="enable" 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.EnableChat(enable,onSuccess,onFailed,userContext); }
ChatService.SelectNewMessages= function(lastId,sessionId,adminPage,onSuccess,onFailed,userContext) {
/// <param name="lastId" type="Number">System.Int32</param>
/// <param name="sessionId" type="String">System.String</param>
/// <param name="adminPage" 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.SelectNewMessages(lastId,sessionId,adminPage,onSuccess,onFailed,userContext); }
ChatService.Insert= function(sessionId,fromAdmin,pageUrl,message,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="String">System.String</param>
/// <param name="fromAdmin" type="Boolean">System.Boolean</param>
/// <param name="pageUrl" type="String">System.String</param>
/// <param name="message" 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.Insert(sessionId,fromAdmin,pageUrl,message,onSuccess,onFailed,userContext); }
ChatService.GetLastId= 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>
ChatService._staticInstance.GetLastId(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Chat) === 'undefined') {
var Chat=gtc("Chat");
Chat.registerClass('Chat');
}
