Type.registerNamespace('Vdc.Chat.WebServices');
Vdc.Chat.WebServices.RelationManager=function() {
Vdc.Chat.WebServices.RelationManager.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Vdc.Chat.WebServices.RelationManager.prototype={
FindPseudos:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'FindPseudos',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
MakeProposition:function(pseudo,hash,otherPseudo,raison,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'MakeProposition',false,{pseudo:pseudo,hash:hash,otherPseudo:otherPseudo,raison:raison},succeededCallback,failedCallback,userContext); },
IsPropositionAvailableForUtilisateur:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'IsPropositionAvailableForUtilisateur',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
SetPropositionResponse:function(pseudo,hash,response,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'SetPropositionResponse',false,{pseudo:pseudo,hash:hash,response:response},succeededCallback,failedCallback,userContext); },
GetPropositionStatut:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'GetPropositionStatut',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
StillHaveToWait:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'StillHaveToWait',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
ChatSendMessage:function(pseudo,hash,message,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatSendMessage',false,{pseudo:pseudo,hash:hash,message:message},succeededCallback,failedCallback,userContext); },
ChatGetConversationInformations:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatGetConversationInformations',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
ChatGetLastMessages:function(pseudo,hash,index,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatGetLastMessages',false,{pseudo:pseudo,hash:hash,index:index},succeededCallback,failedCallback,userContext); },
ChatAlerteConversation:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatAlerteConversation',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
ChatArreteConversation:function(pseudo,hash,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatArreteConversation',false,{pseudo:pseudo,hash:hash},succeededCallback,failedCallback,userContext); },
ChatSetAvisForConversation:function(pseudo,hash,conversationId,avis,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatSetAvisForConversation',false,{pseudo:pseudo,hash:hash,conversationId:conversationId,avis:avis},succeededCallback,failedCallback,userContext); },
ChatSetAppreciationForConversation:function(pseudo,hash,conversationId,appr,succeededCallback, failedCallback, userContext) {
return this._invoke(Vdc.Chat.WebServices.RelationManager.get_path(), 'ChatSetAppreciationForConversation',false,{pseudo:pseudo,hash:hash,conversationId:conversationId,appr:appr},succeededCallback,failedCallback,userContext); }}
Vdc.Chat.WebServices.RelationManager.registerClass('Vdc.Chat.WebServices.RelationManager',Sys.Net.WebServiceProxy);
Vdc.Chat.WebServices.RelationManager._staticInstance = new Vdc.Chat.WebServices.RelationManager();
Vdc.Chat.WebServices.RelationManager.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Vdc.Chat.WebServices.RelationManager._staticInstance._path = value; }
Vdc.Chat.WebServices.RelationManager.get_path = function() { return Vdc.Chat.WebServices.RelationManager._staticInstance._path; }
Vdc.Chat.WebServices.RelationManager.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Vdc.Chat.WebServices.RelationManager._staticInstance._timeout = value; }
Vdc.Chat.WebServices.RelationManager.get_timeout = function() { 
return Vdc.Chat.WebServices.RelationManager._staticInstance._timeout; }
Vdc.Chat.WebServices.RelationManager.set_defaultUserContext = function(value) { 
Vdc.Chat.WebServices.RelationManager._staticInstance._userContext = value; }
Vdc.Chat.WebServices.RelationManager.get_defaultUserContext = function() { 
return Vdc.Chat.WebServices.RelationManager._staticInstance._userContext; }
Vdc.Chat.WebServices.RelationManager.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Vdc.Chat.WebServices.RelationManager._staticInstance._succeeded = value; }
Vdc.Chat.WebServices.RelationManager.get_defaultSucceededCallback = function() { 
return Vdc.Chat.WebServices.RelationManager._staticInstance._succeeded; }
Vdc.Chat.WebServices.RelationManager.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Vdc.Chat.WebServices.RelationManager._staticInstance._failed = value; }
Vdc.Chat.WebServices.RelationManager.get_defaultFailedCallback = function() { 
return Vdc.Chat.WebServices.RelationManager._staticInstance._failed; }
Vdc.Chat.WebServices.RelationManager.set_path("/WebServices/RelationManager.asmx");
Vdc.Chat.WebServices.RelationManager.FindPseudos= function(prefixText,count,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.FindPseudos(prefixText,count,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.MakeProposition= function(pseudo,hash,otherPseudo,raison,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.MakeProposition(pseudo,hash,otherPseudo,raison,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.IsPropositionAvailableForUtilisateur= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.IsPropositionAvailableForUtilisateur(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.SetPropositionResponse= function(pseudo,hash,response,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.SetPropositionResponse(pseudo,hash,response,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.GetPropositionStatut= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.GetPropositionStatut(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.StillHaveToWait= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.StillHaveToWait(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatSendMessage= function(pseudo,hash,message,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatSendMessage(pseudo,hash,message,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatGetConversationInformations= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatGetConversationInformations(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatGetLastMessages= function(pseudo,hash,index,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatGetLastMessages(pseudo,hash,index,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatAlerteConversation= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatAlerteConversation(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatArreteConversation= function(pseudo,hash,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatArreteConversation(pseudo,hash,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatSetAvisForConversation= function(pseudo,hash,conversationId,avis,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatSetAvisForConversation(pseudo,hash,conversationId,avis,onSuccess,onFailed,userContext); }
Vdc.Chat.WebServices.RelationManager.ChatSetAppreciationForConversation= function(pseudo,hash,conversationId,appr,onSuccess,onFailed,userContext) {Vdc.Chat.WebServices.RelationManager._staticInstance.ChatSetAppreciationForConversation(pseudo,hash,conversationId,appr,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Vdc.Chat.WebServices.RelationManager_PropositionChatForJs) === 'undefined') {
Vdc.Chat.WebServices.RelationManager_PropositionChatForJs=gtc("Vdc.Chat.WebServices.RelationManager+PropositionChatForJs");
Vdc.Chat.WebServices.RelationManager_PropositionChatForJs.registerClass('Vdc.Chat.WebServices.RelationManager_PropositionChatForJs');
}
if (typeof(Vdc.Chat.WebServices.RelationManager_ConversationInformationsForJs) === 'undefined') {
Vdc.Chat.WebServices.RelationManager_ConversationInformationsForJs=gtc("Vdc.Chat.WebServices.RelationManager+ConversationInformationsForJs");
Vdc.Chat.WebServices.RelationManager_ConversationInformationsForJs.registerClass('Vdc.Chat.WebServices.RelationManager_ConversationInformationsForJs');
}
if (typeof(Vdc.Chat.WebServices.RelationManager_ConversationUpdateChatForJs) === 'undefined') {
Vdc.Chat.WebServices.RelationManager_ConversationUpdateChatForJs=gtc("Vdc.Chat.WebServices.RelationManager+ConversationUpdateChatForJs");
Vdc.Chat.WebServices.RelationManager_ConversationUpdateChatForJs.registerClass('Vdc.Chat.WebServices.RelationManager_ConversationUpdateChatForJs');
}
Type.registerNamespace('Vdc.Chat');
if (typeof(Vdc.Chat.Raison) === 'undefined') {
Vdc.Chat.Raison = function() { throw Error.invalidOperation(); }
Vdc.Chat.Raison.prototype = {MissiveDirecte: 0,Kairos: 1,Livres: 2,Films: 3,CD: 4,Favoris: 5,Ressemble: 6,Actualite: 7,AimeLesFavoris: 8,FaitPourVous: 9,Invites: 10,Newbie: 11}
Vdc.Chat.Raison.registerEnum('Vdc.Chat.Raison', true);
}
if (typeof(Vdc.Chat.Statut) === 'undefined') {
Vdc.Chat.Statut = function() { throw Error.invalidOperation(); }
Vdc.Chat.Statut.prototype = {PropositionDisponible: 0,PropositionAffichee: 1,PropositionAcceptee: 2,PropositionRefusee: 3,UtilisateurConnecte: 4}
Vdc.Chat.Statut.registerEnum('Vdc.Chat.Statut', true);
}
if (typeof(Vdc.Chat.WebServices.RelationManager_StatutPropositionConnection) === 'undefined') {
Vdc.Chat.WebServices.RelationManager_StatutPropositionConnection = function() { throw Error.invalidOperation(); }
Vdc.Chat.WebServices.RelationManager_StatutPropositionConnection.prototype = {ContinueWaiting: 1,StartChatting: 2,ConnectionLost: 3}
Vdc.Chat.WebServices.RelationManager_StatutPropositionConnection.registerEnum('Vdc.Chat.WebServices.RelationManager_StatutPropositionConnection', true);
}
