Type.registerNamespace('GoBusker.WebServices.Ajax');
GoBusker.WebServices.Ajax.MemberProfile=function() {
GoBusker.WebServices.Ajax.MemberProfile.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GoBusker.WebServices.Ajax.MemberProfile.prototype={
OfferFriendShip:function(senderUserId,wooedUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'OfferFriendShip',false,{senderUserId:senderUserId,wooedUserId:wooedUserId},succeededCallback,failedCallback,userContext); },
CancelFriendShip:function(senderUserId,wooedUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'CancelFriendShip',false,{senderUserId:senderUserId,wooedUserId:wooedUserId},succeededCallback,failedCallback,userContext); },
DeclineFriendShipOffer:function(userId,userIdToDecline,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'DeclineFriendShipOffer',false,{userId:userId,userIdToDecline:userIdToDecline},succeededCallback,failedCallback,userContext); },
GetUnapprovedFriendsTable:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'GetUnapprovedFriendsTable',false,{userId:userId},succeededCallback,failedCallback,userContext); },
SendPrivateMessage:function(userId,recipientUserIds,subject,text,type,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'SendPrivateMessage',false,{userId:userId,recipientUserIds:recipientUserIds,subject:subject,text:text,type:type},succeededCallback,failedCallback,userContext); },
DeleteVideoContestEntry:function(userId,postId,contestId,succeededCallback, failedCallback, userContext) {
return this._invoke(GoBusker.WebServices.Ajax.MemberProfile.get_path(), 'DeleteVideoContestEntry',false,{userId:userId,postId:postId,contestId:contestId},succeededCallback,failedCallback,userContext); }}
GoBusker.WebServices.Ajax.MemberProfile.registerClass('GoBusker.WebServices.Ajax.MemberProfile',Sys.Net.WebServiceProxy);
GoBusker.WebServices.Ajax.MemberProfile._staticInstance = new GoBusker.WebServices.Ajax.MemberProfile();
GoBusker.WebServices.Ajax.MemberProfile.set_path = function(value) { GoBusker.WebServices.Ajax.MemberProfile._staticInstance._path = value; }
GoBusker.WebServices.Ajax.MemberProfile.get_path = function() { return GoBusker.WebServices.Ajax.MemberProfile._staticInstance._path; }
GoBusker.WebServices.Ajax.MemberProfile.set_timeout = function(value) { GoBusker.WebServices.Ajax.MemberProfile._staticInstance._timeout = value; }
GoBusker.WebServices.Ajax.MemberProfile.get_timeout = function() { return GoBusker.WebServices.Ajax.MemberProfile._staticInstance._timeout; }
GoBusker.WebServices.Ajax.MemberProfile.set_defaultUserContext = function(value) { GoBusker.WebServices.Ajax.MemberProfile._staticInstance._userContext = value; }
GoBusker.WebServices.Ajax.MemberProfile.get_defaultUserContext = function() { return GoBusker.WebServices.Ajax.MemberProfile._staticInstance._userContext; }
GoBusker.WebServices.Ajax.MemberProfile.set_defaultSucceededCallback = function(value) { GoBusker.WebServices.Ajax.MemberProfile._staticInstance._succeeded = value; }
GoBusker.WebServices.Ajax.MemberProfile.get_defaultSucceededCallback = function() { return GoBusker.WebServices.Ajax.MemberProfile._staticInstance._succeeded; }
GoBusker.WebServices.Ajax.MemberProfile.set_defaultFailedCallback = function(value) { GoBusker.WebServices.Ajax.MemberProfile._staticInstance._failed = value; }
GoBusker.WebServices.Ajax.MemberProfile.get_defaultFailedCallback = function() { return GoBusker.WebServices.Ajax.MemberProfile._staticInstance._failed; }
GoBusker.WebServices.Ajax.MemberProfile.set_path("/utility/Ajax/MemberProfile/MemberProfile.asmx");
GoBusker.WebServices.Ajax.MemberProfile.OfferFriendShip= function(senderUserId,wooedUserId,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.OfferFriendShip(senderUserId,wooedUserId,onSuccess,onFailed,userContext); }
GoBusker.WebServices.Ajax.MemberProfile.CancelFriendShip= function(senderUserId,wooedUserId,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.CancelFriendShip(senderUserId,wooedUserId,onSuccess,onFailed,userContext); }
GoBusker.WebServices.Ajax.MemberProfile.DeclineFriendShipOffer= function(userId,userIdToDecline,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.DeclineFriendShipOffer(userId,userIdToDecline,onSuccess,onFailed,userContext); }
GoBusker.WebServices.Ajax.MemberProfile.GetUnapprovedFriendsTable= function(userId,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.GetUnapprovedFriendsTable(userId,onSuccess,onFailed,userContext); }
GoBusker.WebServices.Ajax.MemberProfile.SendPrivateMessage= function(userId,recipientUserIds,subject,text,type,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.SendPrivateMessage(userId,recipientUserIds,subject,text,type,onSuccess,onFailed,userContext); }
GoBusker.WebServices.Ajax.MemberProfile.DeleteVideoContestEntry= function(userId,postId,contestId,onSuccess,onFailed,userContext) {GoBusker.WebServices.Ajax.MemberProfile._staticInstance.DeleteVideoContestEntry(userId,postId,contestId,onSuccess,onFailed,userContext); }
if (typeof(GoBusker.WebServices.Ajax.MemberProfile_OfferFriendShipReturnValue) === 'undefined') {
GoBusker.WebServices.Ajax.MemberProfile_OfferFriendShipReturnValue = function() { throw Error.invalidOperation(); }
GoBusker.WebServices.Ajax.MemberProfile_OfferFriendShipReturnValue.prototype = {Success: 0,UserWasAlreadyFriend: 1,ErrorAtAddingFriend: 2}
GoBusker.WebServices.Ajax.MemberProfile_OfferFriendShipReturnValue.registerEnum('GoBusker.WebServices.Ajax.MemberProfile_OfferFriendShipReturnValue', true);
}
if (typeof(GoBusker.WebServices.Ajax.MemberProfile_PrivateMessageType) === 'undefined') {
GoBusker.WebServices.Ajax.MemberProfile_PrivateMessageType = function() { throw Error.invalidOperation(); }
GoBusker.WebServices.Ajax.MemberProfile_PrivateMessageType.prototype = {Normal: 0,OfferFriendShip: 1}
GoBusker.WebServices.Ajax.MemberProfile_PrivateMessageType.registerEnum('GoBusker.WebServices.Ajax.MemberProfile_PrivateMessageType', true);
}
if (typeof(GoBusker.WebServices.Ajax.MemberProfile_SendPrivateMessageReturnValue) === 'undefined') {
GoBusker.WebServices.Ajax.MemberProfile_SendPrivateMessageReturnValue = function() { throw Error.invalidOperation(); }
GoBusker.WebServices.Ajax.MemberProfile_SendPrivateMessageReturnValue.prototype = {Success: 0,BogyWasEmpty: 1,SubjectWasEmpty: 2,ErrorAtSending: 3}
GoBusker.WebServices.Ajax.MemberProfile_SendPrivateMessageReturnValue.registerEnum('GoBusker.WebServices.Ajax.MemberProfile_SendPrivateMessageReturnValue', true);
}
