var Service=function() {
Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service.prototype={
CheckForRequest:function(intWebSiteId,strInvitedUserProfilePrivateGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'CheckForRequest',false,{intWebSiteId:intWebSiteId,strInvitedUserProfilePrivateGuid:strInvitedUserProfilePrivateGuid},succeededCallback,failedCallback,userContext); },
SendMessage:function(strUserProfilePrivateGuid,strMessage,intChatSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'SendMessage',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid,strMessage:strMessage,intChatSessionId:intChatSessionId},succeededCallback,failedCallback,userContext); },
GetOnlineUsers:function(intWebSiteId,strInvitedUserProfilePrivateGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetOnlineUsers',false,{intWebSiteId:intWebSiteId,strInvitedUserProfilePrivateGuid:strInvitedUserProfilePrivateGuid},succeededCallback,failedCallback,userContext); },
CreateChatSession:function(strInviterUserProfilePrivateGuid,intWebSiteId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'CreateChatSession',false,{strInviterUserProfilePrivateGuid:strInviterUserProfilePrivateGuid,intWebSiteId:intWebSiteId},succeededCallback,failedCallback,userContext); },
CloseChatSession:function(strUserProfilePrivateGuid,intChatSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'CloseChatSession',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid,intChatSessionId:intChatSessionId},succeededCallback,failedCallback,userContext); },
GetNumberOfActiveChats:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetNumberOfActiveChats',false,{},succeededCallback,failedCallback,userContext); },
ChatAccepted:function(strInvitedUserProfilePrivateGuid,intChatSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'ChatAccepted',false,{strInvitedUserProfilePrivateGuid:strInvitedUserProfilePrivateGuid,intChatSessionId:intChatSessionId},succeededCallback,failedCallback,userContext); },
RejectRequest:function(strInvitedUserProfilePrivateGuid,intChatSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'RejectRequest',false,{strInvitedUserProfilePrivateGuid:strInvitedUserProfilePrivateGuid,intChatSessionId:intChatSessionId},succeededCallback,failedCallback,userContext); },
GetChatMessages:function(strUserProfilePrivateGuid,intChatSessionId,intNumRecordsPrev,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetChatMessages',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid,intChatSessionId:intChatSessionId,intNumRecordsPrev:intNumRecordsPrev},succeededCallback,failedCallback,userContext); },
InviteChatUser:function(strInviterUserProfilePrivateGuid,intAnimalProfileId,intChatSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'InviteChatUser',false,{strInviterUserProfilePrivateGuid:strInviterUserProfilePrivateGuid,intAnimalProfileId:intAnimalProfileId,intChatSessionId:intChatSessionId},succeededCallback,failedCallback,userContext); },
GetActiveSessions:function(strUserProfilePrivateGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetActiveSessions',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid},succeededCallback,failedCallback,userContext); },
GetFriendsList:function(intWebSiteId,strUserProfilePrivateGuid,intSessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'GetFriendsList',false,{intWebSiteId:intWebSiteId,strUserProfilePrivateGuid:strUserProfilePrivateGuid,intSessionId:intSessionId},succeededCallback,failedCallback,userContext); },
AddFriendToList:function(strUserProfilePrivateGuid,inviterAnimalProfileId,sessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'AddFriendToList',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid,inviterAnimalProfileId:inviterAnimalProfileId,sessionId:sessionId},succeededCallback,failedCallback,userContext); },
AddFriendToList2:function(intUserProfileId,userGuid,sessionId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'AddFriendToList2',false,{intUserProfileId:intUserProfileId,userGuid:userGuid,sessionId:sessionId},succeededCallback,failedCallback,userContext); },
RemoveFromFriendsList:function(strUserProfilePrivateGuid,intAnimalProfileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'RemoveFromFriendsList',false,{strUserProfilePrivateGuid:strUserProfilePrivateGuid,intAnimalProfileId:intAnimalProfileId},succeededCallback,failedCallback,userContext); },
AlreadyFriends:function(intUserProfileId,intAnimalProfileId,intWebSiteId,succeededCallback, failedCallback, userContext) {
return this._invoke(Service.get_path(), 'AlreadyFriends',false,{intUserProfileId:intUserProfileId,intAnimalProfileId:intAnimalProfileId,intWebSiteId:intWebSiteId},succeededCallback,failedCallback,userContext); }}
Service.registerClass('Service',Sys.Net.WebServiceProxy);
Service._staticInstance = new Service();
Service.set_path = function(value) { Service._staticInstance._path = value; }
Service.get_path = function() { return Service._staticInstance._path; }
Service.set_timeout = function(value) { Service._staticInstance._timeout = value; }
Service.get_timeout = function() { return Service._staticInstance._timeout; }
Service.set_defaultUserContext = function(value) { Service._staticInstance._userContext = value; }
Service.get_defaultUserContext = function() { return Service._staticInstance._userContext; }
Service.set_defaultSucceededCallback = function(value) { Service._staticInstance._succeeded = value; }
Service.get_defaultSucceededCallback = function() { return Service._staticInstance._succeeded; }
Service.set_defaultFailedCallback = function(value) { Service._staticInstance._failed = value; }
Service.get_defaultFailedCallback = function() { return Service._staticInstance._failed; }
Service.set_path("/Service.asmx");
Service.CheckForRequest= function(intWebSiteId,strInvitedUserProfilePrivateGuid,onSuccess,onFailed,userContext) {Service._staticInstance.CheckForRequest(intWebSiteId,strInvitedUserProfilePrivateGuid,onSuccess,onFailed,userContext); }
Service.SendMessage= function(strUserProfilePrivateGuid,strMessage,intChatSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.SendMessage(strUserProfilePrivateGuid,strMessage,intChatSessionId,onSuccess,onFailed,userContext); }
Service.GetOnlineUsers= function(intWebSiteId,strInvitedUserProfilePrivateGuid,onSuccess,onFailed,userContext) {Service._staticInstance.GetOnlineUsers(intWebSiteId,strInvitedUserProfilePrivateGuid,onSuccess,onFailed,userContext); }
Service.CreateChatSession= function(strInviterUserProfilePrivateGuid,intWebSiteId,onSuccess,onFailed,userContext) {Service._staticInstance.CreateChatSession(strInviterUserProfilePrivateGuid,intWebSiteId,onSuccess,onFailed,userContext); }
Service.CloseChatSession= function(strUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.CloseChatSession(strUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext); }
Service.GetNumberOfActiveChats= function(onSuccess,onFailed,userContext) {Service._staticInstance.GetNumberOfActiveChats(onSuccess,onFailed,userContext); }
Service.ChatAccepted= function(strInvitedUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.ChatAccepted(strInvitedUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext); }
Service.RejectRequest= function(strInvitedUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.RejectRequest(strInvitedUserProfilePrivateGuid,intChatSessionId,onSuccess,onFailed,userContext); }
Service.GetChatMessages= function(strUserProfilePrivateGuid,intChatSessionId,intNumRecordsPrev,onSuccess,onFailed,userContext) {Service._staticInstance.GetChatMessages(strUserProfilePrivateGuid,intChatSessionId,intNumRecordsPrev,onSuccess,onFailed,userContext); }
Service.InviteChatUser= function(strInviterUserProfilePrivateGuid,intAnimalProfileId,intChatSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.InviteChatUser(strInviterUserProfilePrivateGuid,intAnimalProfileId,intChatSessionId,onSuccess,onFailed,userContext); }
Service.GetActiveSessions= function(strUserProfilePrivateGuid,onSuccess,onFailed,userContext) {Service._staticInstance.GetActiveSessions(strUserProfilePrivateGuid,onSuccess,onFailed,userContext); }
Service.GetFriendsList= function(intWebSiteId,strUserProfilePrivateGuid,intSessionId,onSuccess,onFailed,userContext) {Service._staticInstance.GetFriendsList(intWebSiteId,strUserProfilePrivateGuid,intSessionId,onSuccess,onFailed,userContext); }
Service.AddFriendToList= function(strUserProfilePrivateGuid,inviterAnimalProfileId,sessionId,onSuccess,onFailed,userContext) {Service._staticInstance.AddFriendToList(strUserProfilePrivateGuid,inviterAnimalProfileId,sessionId,onSuccess,onFailed,userContext); }
Service.AddFriendToList2= function(intUserProfileId,userGuid,sessionId,onSuccess,onFailed,userContext) {Service._staticInstance.AddFriendToList2(intUserProfileId,userGuid,sessionId,onSuccess,onFailed,userContext); }
Service.RemoveFromFriendsList= function(strUserProfilePrivateGuid,intAnimalProfileId,onSuccess,onFailed,userContext) {Service._staticInstance.RemoveFromFriendsList(strUserProfilePrivateGuid,intAnimalProfileId,onSuccess,onFailed,userContext); }
Service.AlreadyFriends= function(intUserProfileId,intAnimalProfileId,intWebSiteId,onSuccess,onFailed,userContext) {Service._staticInstance.AlreadyFriends(intUserProfileId,intAnimalProfileId,intWebSiteId,onSuccess,onFailed,userContext); }
