Type.registerNamespace('AjaxChat');
AjaxChat.InstantMessengerService=function() {
AjaxChat.InstantMessengerService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AjaxChat.InstantMessengerService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AjaxChat.InstantMessengerService._staticInstance.get_path();},
StartSession: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(), 'StartSession',false,{username:username},succeededCallback,failedCallback,userContext); },
GetAllMessages:function(sessionId,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" 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(), 'GetAllMessages',false,{sessionId:sessionId},succeededCallback,failedCallback,userContext); },
GetMessages:function(sessionId,fromUsername,fromId,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="fromUsername" type="String">System.String</param>
/// <param name="fromId" 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(), 'GetMessages',false,{sessionId:sessionId,fromUsername:fromUsername,fromId:fromId},succeededCallback,failedCallback,userContext); },
SendMessage:function(sessionId,toUsername,message,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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(), 'SendMessage',false,{sessionId:sessionId,toUsername:toUsername,message:message},succeededCallback,failedCallback,userContext); },
GetInvitations: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(), 'GetInvitations',false,{},succeededCallback,failedCallback,userContext); },
SetNew:function(sessionId,isNew,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="isNew" 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(), 'SetNew',false,{sessionId:sessionId,isNew:isNew},succeededCallback,failedCallback,userContext); },
SetBusy:function(sessionId,toUsername,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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(), 'SetBusy',false,{sessionId:sessionId,toUsername:toUsername},succeededCallback,failedCallback,userContext); },
BlockUser:function(sessionId,toUsername,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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(), 'BlockUser',false,{sessionId:sessionId,toUsername:toUsername},succeededCallback,failedCallback,userContext); },
Ignore:function(sessionId,toUsername,succeededCallback, failedCallback, userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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(), 'Ignore',false,{sessionId:sessionId,toUsername:toUsername},succeededCallback,failedCallback,userContext); }}
AjaxChat.InstantMessengerService.registerClass('AjaxChat.InstantMessengerService',Sys.Net.WebServiceProxy);
AjaxChat.InstantMessengerService._staticInstance = new AjaxChat.InstantMessengerService();
AjaxChat.InstantMessengerService.set_path = function(value) {
AjaxChat.InstantMessengerService._staticInstance.set_path(value); }
AjaxChat.InstantMessengerService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return AjaxChat.InstantMessengerService._staticInstance.get_path();}
AjaxChat.InstantMessengerService.set_timeout = function(value) {
AjaxChat.InstantMessengerService._staticInstance.set_timeout(value); }
AjaxChat.InstantMessengerService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return AjaxChat.InstantMessengerService._staticInstance.get_timeout(); }
AjaxChat.InstantMessengerService.set_defaultUserContext = function(value) { 
AjaxChat.InstantMessengerService._staticInstance.set_defaultUserContext(value); }
AjaxChat.InstantMessengerService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return AjaxChat.InstantMessengerService._staticInstance.get_defaultUserContext(); }
AjaxChat.InstantMessengerService.set_defaultSucceededCallback = function(value) { 
 AjaxChat.InstantMessengerService._staticInstance.set_defaultSucceededCallback(value); }
AjaxChat.InstantMessengerService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return AjaxChat.InstantMessengerService._staticInstance.get_defaultSucceededCallback(); }
AjaxChat.InstantMessengerService.set_defaultFailedCallback = function(value) { 
AjaxChat.InstantMessengerService._staticInstance.set_defaultFailedCallback(value); }
AjaxChat.InstantMessengerService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return AjaxChat.InstantMessengerService._staticInstance.get_defaultFailedCallback(); }
AjaxChat.InstantMessengerService.set_path("/AjaxChat/InstantMessengerService.asmx");
AjaxChat.InstantMessengerService.StartSession= 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>
AjaxChat.InstantMessengerService._staticInstance.StartSession(username,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.GetAllMessages= function(sessionId,onSuccess,onFailed,userContext) {
/// <param name="sessionId" 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>
AjaxChat.InstantMessengerService._staticInstance.GetAllMessages(sessionId,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.GetMessages= function(sessionId,fromUsername,fromId,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="fromUsername" type="String">System.String</param>
/// <param name="fromId" 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>
AjaxChat.InstantMessengerService._staticInstance.GetMessages(sessionId,fromUsername,fromId,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.SendMessage= function(sessionId,toUsername,message,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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>
AjaxChat.InstantMessengerService._staticInstance.SendMessage(sessionId,toUsername,message,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.GetInvitations= 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>
AjaxChat.InstantMessengerService._staticInstance.GetInvitations(onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.SetNew= function(sessionId,isNew,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="isNew" 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>
AjaxChat.InstantMessengerService._staticInstance.SetNew(sessionId,isNew,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.SetBusy= function(sessionId,toUsername,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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>
AjaxChat.InstantMessengerService._staticInstance.SetBusy(sessionId,toUsername,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.BlockUser= function(sessionId,toUsername,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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>
AjaxChat.InstantMessengerService._staticInstance.BlockUser(sessionId,toUsername,onSuccess,onFailed,userContext); }
AjaxChat.InstantMessengerService.Ignore= function(sessionId,toUsername,onSuccess,onFailed,userContext) {
/// <param name="sessionId" type="Number">System.Int32</param>
/// <param name="toUsername" 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>
AjaxChat.InstantMessengerService._staticInstance.Ignore(sessionId,toUsername,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AspNetDating.Entities');
if (typeof(AspNetDating.Entities.InstantMessengerMessages) === 'undefined') {
AspNetDating.Entities.InstantMessengerMessages=gtc("AspNetDating.Entities.InstantMessengerMessages");
AspNetDating.Entities.InstantMessengerMessages.registerClass('AspNetDating.Entities.InstantMessengerMessages');
}
if (typeof(AspNetDating.Entities.InstantMessengerSessions) === 'undefined') {
AspNetDating.Entities.InstantMessengerSessions=gtc("AspNetDating.Entities.InstantMessengerSessions");
AspNetDating.Entities.InstantMessengerSessions.registerClass('AspNetDating.Entities.InstantMessengerSessions');
}

