Type.registerNamespace('spprj.Services');
spprj.Services.GirlsEngine=function() {
spprj.Services.GirlsEngine.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
spprj.Services.GirlsEngine.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return spprj.Services.GirlsEngine._staticInstance.get_path();},
GetGirls:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGirls',false,{},succeededCallback,failedCallback,userContext); },
SendMessage:function(textMessage,channelID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendMessage',false,{textMessage:textMessage,channelID:channelID},succeededCallback,failedCallback,userContext); },
GetMyMessages:function(sessionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMyMessages',false,{sessionID:sessionID},succeededCallback,failedCallback,userContext); },
GetLast20Messages:function(lastMsgDate,sessionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLast20Messages',false,{lastMsgDate:lastMsgDate,sessionID:sessionID},succeededCallback,failedCallback,userContext); },
GetLastMessage:function(lastMsgDate,sessionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLastMessage',false,{lastMsgDate:lastMsgDate,sessionID:sessionID},succeededCallback,failedCallback,userContext); },
SetReaded:function(sessionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetReaded',false,{sessionID:sessionID},succeededCallback,failedCallback,userContext); }}
spprj.Services.GirlsEngine.registerClass('spprj.Services.GirlsEngine',Sys.Net.WebServiceProxy);
spprj.Services.GirlsEngine._staticInstance = new spprj.Services.GirlsEngine();
spprj.Services.GirlsEngine.set_path = function(value) { spprj.Services.GirlsEngine._staticInstance.set_path(value); }
spprj.Services.GirlsEngine.get_path = function() { return spprj.Services.GirlsEngine._staticInstance.get_path(); }
spprj.Services.GirlsEngine.set_timeout = function(value) { spprj.Services.GirlsEngine._staticInstance.set_timeout(value); }
spprj.Services.GirlsEngine.get_timeout = function() { return spprj.Services.GirlsEngine._staticInstance.get_timeout(); }
spprj.Services.GirlsEngine.set_defaultUserContext = function(value) { spprj.Services.GirlsEngine._staticInstance.set_defaultUserContext(value); }
spprj.Services.GirlsEngine.get_defaultUserContext = function() { return spprj.Services.GirlsEngine._staticInstance.get_defaultUserContext(); }
spprj.Services.GirlsEngine.set_defaultSucceededCallback = function(value) { spprj.Services.GirlsEngine._staticInstance.set_defaultSucceededCallback(value); }
spprj.Services.GirlsEngine.get_defaultSucceededCallback = function() { return spprj.Services.GirlsEngine._staticInstance.get_defaultSucceededCallback(); }
spprj.Services.GirlsEngine.set_defaultFailedCallback = function(value) { spprj.Services.GirlsEngine._staticInstance.set_defaultFailedCallback(value); }
spprj.Services.GirlsEngine.get_defaultFailedCallback = function() { return spprj.Services.GirlsEngine._staticInstance.get_defaultFailedCallback(); }
spprj.Services.GirlsEngine.set_path("/Services/GirlsEngine.asmx");
spprj.Services.GirlsEngine.GetGirls= function(onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.GetGirls(onSuccess,onFailed,userContext); }
spprj.Services.GirlsEngine.SendMessage= function(textMessage,channelID,onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.SendMessage(textMessage,channelID,onSuccess,onFailed,userContext); }
spprj.Services.GirlsEngine.GetMyMessages= function(sessionID,onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.GetMyMessages(sessionID,onSuccess,onFailed,userContext); }
spprj.Services.GirlsEngine.GetLast20Messages= function(lastMsgDate,sessionID,onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.GetLast20Messages(lastMsgDate,sessionID,onSuccess,onFailed,userContext); }
spprj.Services.GirlsEngine.GetLastMessage= function(lastMsgDate,sessionID,onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.GetLastMessage(lastMsgDate,sessionID,onSuccess,onFailed,userContext); }
spprj.Services.GirlsEngine.SetReaded= function(sessionID,onSuccess,onFailed,userContext) {spprj.Services.GirlsEngine._staticInstance.SetReaded(sessionID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ChatEngine');
if (typeof(ChatEngine.Girl) === 'undefined') {
ChatEngine.Girl=gtc("ChatEngine.Girl");
ChatEngine.Girl.registerClass('ChatEngine.Girl');
}
if (typeof(spprj.Services.MessageHolder) === 'undefined') {
spprj.Services.MessageHolder=gtc("spprj.Services.MessageHolder");
spprj.Services.MessageHolder.registerClass('spprj.Services.MessageHolder');
}
