Type.registerNamespace('Avenue7_Presentation');
Avenue7_Presentation.FriendService=function() {
Avenue7_Presentation.FriendService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Avenue7_Presentation.FriendService.prototype={
FriendshipInvite:function(messageText,friendGUID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.FriendService.get_path(), 'FriendshipInvite',false,{messageText:messageText,friendGUID:friendGUID},succeededCallback,failedCallback,userContext); },
FriendAddFriendship:function(userID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.FriendService.get_path(), 'FriendAddFriendship',false,{userID:userID},succeededCallback,failedCallback,userContext); },
FriendUpdateFriendshipToDecline:function(userID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.FriendService.get_path(), 'FriendUpdateFriendshipToDecline',false,{userID:userID},succeededCallback,failedCallback,userContext); },
FriendshipResendInvite:function(emailID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.FriendService.get_path(), 'FriendshipResendInvite',false,{emailID:emailID},succeededCallback,failedCallback,userContext); }}
Avenue7_Presentation.FriendService.registerClass('Avenue7_Presentation.FriendService',Sys.Net.WebServiceProxy);
Avenue7_Presentation.FriendService._staticInstance = new Avenue7_Presentation.FriendService();
Avenue7_Presentation.FriendService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Avenue7_Presentation.FriendService._staticInstance._path = value; }
Avenue7_Presentation.FriendService.get_path = function() { return Avenue7_Presentation.FriendService._staticInstance._path; }
Avenue7_Presentation.FriendService.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); }
Avenue7_Presentation.FriendService._staticInstance._timeout = value; }
Avenue7_Presentation.FriendService.get_timeout = function() { 
return Avenue7_Presentation.FriendService._staticInstance._timeout; }
Avenue7_Presentation.FriendService.set_defaultUserContext = function(value) { 
Avenue7_Presentation.FriendService._staticInstance._userContext = value; }
Avenue7_Presentation.FriendService.get_defaultUserContext = function() { 
return Avenue7_Presentation.FriendService._staticInstance._userContext; }
Avenue7_Presentation.FriendService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Avenue7_Presentation.FriendService._staticInstance._succeeded = value; }
Avenue7_Presentation.FriendService.get_defaultSucceededCallback = function() { 
return Avenue7_Presentation.FriendService._staticInstance._succeeded; }
Avenue7_Presentation.FriendService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Avenue7_Presentation.FriendService._staticInstance._failed = value; }
Avenue7_Presentation.FriendService.get_defaultFailedCallback = function() { 
return Avenue7_Presentation.FriendService._staticInstance._failed; }
Avenue7_Presentation.FriendService.set_path("/webservices/FriendService.asmx");
Avenue7_Presentation.FriendService.FriendshipInvite= function(messageText,friendGUID,onSuccess,onFailed,userContext) {Avenue7_Presentation.FriendService._staticInstance.FriendshipInvite(messageText,friendGUID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.FriendService.FriendAddFriendship= function(userID,onSuccess,onFailed,userContext) {Avenue7_Presentation.FriendService._staticInstance.FriendAddFriendship(userID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.FriendService.FriendUpdateFriendshipToDecline= function(userID,onSuccess,onFailed,userContext) {Avenue7_Presentation.FriendService._staticInstance.FriendUpdateFriendshipToDecline(userID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.FriendService.FriendshipResendInvite= function(emailID,onSuccess,onFailed,userContext) {Avenue7_Presentation.FriendService._staticInstance.FriendshipResendInvite(emailID,onSuccess,onFailed,userContext); }
