Type.registerNamespace('OTBRadio.Profile');
OTBRadio.Profile.WSProfile=function() {
OTBRadio.Profile.WSProfile.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
OTBRadio.Profile.WSProfile.prototype={
LoadAddFriendPanel:function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'LoadAddFriendPanel',false,{userID:userID,visitorID:visitorID,userDisplayName:userDisplayName,userPhotoPath:userPhotoPath,userPhotoFilename:userPhotoFilename,userUrl:userUrl},succeededCallback,failedCallback,userContext); },
AddFriend:function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'AddFriend',false,{userID:userID,visitorID:visitorID,userDisplayName:userDisplayName,userPhotoPath:userPhotoPath,userPhotoFilename:userPhotoFilename,userUrl:userUrl,visitorDisplayName:visitorDisplayName,visitorPhotoPath:visitorPhotoPath,visitorPhotoFilename:visitorPhotoFilename,visitorUrl:visitorUrl},succeededCallback,failedCallback,userContext); },
LoadMessagePanel:function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'LoadMessagePanel',false,{userID:userID,visitorID:visitorID,userDisplayName:userDisplayName,userPhotoPath:userPhotoPath,userPhotoFilename:userPhotoFilename,userUrl:userUrl},succeededCallback,failedCallback,userContext); },
SendMessage:function(userID,visitorID,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,subject,message,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'SendMessage',false,{userID:userID,visitorID:visitorID,visitorDisplayName:visitorDisplayName,visitorPhotoPath:visitorPhotoPath,visitorPhotoFilename:visitorPhotoFilename,visitorUrl:visitorUrl,subject:subject,message:message},succeededCallback,failedCallback,userContext); },
RemoveFromTopFriends:function(userID,friendID,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'RemoveFromTopFriends',false,{userID:userID,friendID:friendID},succeededCallback,failedCallback,userContext); },
AddToTopFriends:function(userID,friendID,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'AddToTopFriends',false,{userID:userID,friendID:friendID},succeededCallback,failedCallback,userContext); },
UpdateProfile:function(userID,isPrivate,displayName,firstName,lastName,gender,month,day,year,hideAge,postalCode,hideLocation,city,country,ethnicity,bodyType,lookingFor,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'UpdateProfile',false,{userID:userID,isPrivate:isPrivate,displayName:displayName,firstName:firstName,lastName:lastName,gender:gender,month:month,day:day,year:year,hideAge:hideAge,postalCode:postalCode,hideLocation:hideLocation,city:city,country:country,ethnicity:ethnicity,bodyType:bodyType,lookingFor:lookingFor},succeededCallback,failedCallback,userContext); },
LoadCommentPanel:function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'LoadCommentPanel',false,{userID:userID,visitorID:visitorID,userDisplayName:userDisplayName,userPhotoPath:userPhotoPath,userPhotoFilename:userPhotoFilename,userUrl:userUrl},succeededCallback,failedCallback,userContext); },
FilterComment:function(commentText,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'FilterComment',false,{commentText:commentText},succeededCallback,failedCallback,userContext); },
PostComment:function(userID,friendID,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'PostComment',false,{userID:userID,friendID:friendID,comment:comment},succeededCallback,failedCallback,userContext); },
LoadBattlePanel:function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(OTBRadio.Profile.WSProfile.get_path(), 'LoadBattlePanel',false,{userID:userID,visitorID:visitorID,userDisplayName:userDisplayName,userPhotoPath:userPhotoPath,userPhotoFilename:userPhotoFilename,userUrl:userUrl},succeededCallback,failedCallback,userContext); }}
OTBRadio.Profile.WSProfile.registerClass('OTBRadio.Profile.WSProfile',Sys.Net.WebServiceProxy);
OTBRadio.Profile.WSProfile._staticInstance = new OTBRadio.Profile.WSProfile();
OTBRadio.Profile.WSProfile.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; OTBRadio.Profile.WSProfile._staticInstance._path = value; }
OTBRadio.Profile.WSProfile.get_path = function() { return OTBRadio.Profile.WSProfile._staticInstance._path; }
OTBRadio.Profile.WSProfile.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); }
OTBRadio.Profile.WSProfile._staticInstance._timeout = value; }
OTBRadio.Profile.WSProfile.get_timeout = function() { 
return OTBRadio.Profile.WSProfile._staticInstance._timeout; }
OTBRadio.Profile.WSProfile.set_defaultUserContext = function(value) { 
OTBRadio.Profile.WSProfile._staticInstance._userContext = value; }
OTBRadio.Profile.WSProfile.get_defaultUserContext = function() { 
return OTBRadio.Profile.WSProfile._staticInstance._userContext; }
OTBRadio.Profile.WSProfile.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; OTBRadio.Profile.WSProfile._staticInstance._succeeded = value; }
OTBRadio.Profile.WSProfile.get_defaultSucceededCallback = function() { 
return OTBRadio.Profile.WSProfile._staticInstance._succeeded; }
OTBRadio.Profile.WSProfile.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; OTBRadio.Profile.WSProfile._staticInstance._failed = value; }
OTBRadio.Profile.WSProfile.get_defaultFailedCallback = function() { 
return OTBRadio.Profile.WSProfile._staticInstance._failed; }
OTBRadio.Profile.WSProfile.set_path("/DesktopModules/OTBRadio-Profile/WebService.asmx");
OTBRadio.Profile.WSProfile.LoadAddFriendPanel= function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.LoadAddFriendPanel(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.AddFriend= function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.AddFriend(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.LoadMessagePanel= function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.LoadMessagePanel(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.SendMessage= function(userID,visitorID,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,subject,message,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.SendMessage(userID,visitorID,visitorDisplayName,visitorPhotoPath,visitorPhotoFilename,visitorUrl,subject,message,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.RemoveFromTopFriends= function(userID,friendID,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.RemoveFromTopFriends(userID,friendID,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.AddToTopFriends= function(userID,friendID,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.AddToTopFriends(userID,friendID,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.UpdateProfile= function(userID,isPrivate,displayName,firstName,lastName,gender,month,day,year,hideAge,postalCode,hideLocation,city,country,ethnicity,bodyType,lookingFor,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.UpdateProfile(userID,isPrivate,displayName,firstName,lastName,gender,month,day,year,hideAge,postalCode,hideLocation,city,country,ethnicity,bodyType,lookingFor,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.LoadCommentPanel= function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.LoadCommentPanel(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.FilterComment= function(commentText,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.FilterComment(commentText,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.PostComment= function(userID,friendID,comment,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.PostComment(userID,friendID,comment,onSuccess,onFailed,userContext); }
OTBRadio.Profile.WSProfile.LoadBattlePanel= function(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext) {OTBRadio.Profile.WSProfile._staticInstance.LoadBattlePanel(userID,visitorID,userDisplayName,userPhotoPath,userPhotoFilename,userUrl,onSuccess,onFailed,userContext); }
