Type.registerNamespace('Dave.Web.Controls.Widgets');
Dave.Web.Controls.Widgets.ProfileService=function() {
Dave.Web.Controls.Widgets.ProfileService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Dave.Web.Controls.Widgets.ProfileService.prototype={
SaveBackgroundColor:function(profileId,color,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'SaveBackgroundColor',true,{profileId:profileId,color:color},succeededCallback,failedCallback,userContext); },
RenameProfilePage:function(profileId,title,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'RenameProfilePage',true,{profileId:profileId,title:title},succeededCallback,failedCallback,userContext); },
RateProfile:function(contentItemID,rating,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'RateProfile',true,{contentItemID:contentItemID,rating:rating},succeededCallback,failedCallback,userContext); },
CopyProfileToMe:function(srcProfileId,deleteExisting,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'CopyProfileToMe',true,{srcProfileId:srcProfileId,deleteExisting:deleteExisting},succeededCallback,failedCallback,userContext); },
DeleteProfilePage:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'DeleteProfilePage',true,{profileId:profileId},succeededCallback,failedCallback,userContext); },
SavePosition:function(partname,width,height,top,left,z,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'SavePosition',true,{partname:partname,width:width,height:height,top:top,left:left,z:z},succeededCallback,failedCallback,userContext); },
SavePositionInt:function(partname,width,height,top,left,z,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'SavePositionInt',true,{partname:partname,width:width,height:height,top:top,left:left,z:z},succeededCallback,failedCallback,userContext); },
AddPart:function(profileId,newWidgetId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'AddPart',false,{profileId:profileId,newWidgetId:newWidgetId},succeededCallback,failedCallback,userContext); },
DropPart:function(partname,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'DropPart',true,{partname:partname},succeededCallback,failedCallback,userContext); },
ListParts:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'ListParts',true,{profileId:profileId},succeededCallback,failedCallback,userContext); },
ClearParts:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'ClearParts',true,{profileId:profileId},succeededCallback,failedCallback,userContext); },
GetMaxZ:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'GetMaxZ',true,{profileId:profileId},succeededCallback,failedCallback,userContext); },
GetMinZ:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'GetMinZ',true,{profileId:profileId},succeededCallback,failedCallback,userContext); },
ActivateUsernameUrl:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'ActivateUsernameUrl',false,{},succeededCallback,failedCallback,userContext); },
SaveComment:function(profileId,comment,succeededCallback, failedCallback, userContext) {
return this._invoke(Dave.Web.Controls.Widgets.ProfileService.get_path(), 'SaveComment',false,{profileId:profileId,comment:comment},succeededCallback,failedCallback,userContext); }}
Dave.Web.Controls.Widgets.ProfileService.registerClass('Dave.Web.Controls.Widgets.ProfileService',Sys.Net.WebServiceProxy);
Dave.Web.Controls.Widgets.ProfileService._staticInstance = new Dave.Web.Controls.Widgets.ProfileService();
Dave.Web.Controls.Widgets.ProfileService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Dave.Web.Controls.Widgets.ProfileService._staticInstance._path = value; }
Dave.Web.Controls.Widgets.ProfileService.get_path = function() { return Dave.Web.Controls.Widgets.ProfileService._staticInstance._path; }
Dave.Web.Controls.Widgets.ProfileService.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); }
Dave.Web.Controls.Widgets.ProfileService._staticInstance._timeout = value; }
Dave.Web.Controls.Widgets.ProfileService.get_timeout = function() { 
return Dave.Web.Controls.Widgets.ProfileService._staticInstance._timeout; }
Dave.Web.Controls.Widgets.ProfileService.set_defaultUserContext = function(value) { 
Dave.Web.Controls.Widgets.ProfileService._staticInstance._userContext = value; }
Dave.Web.Controls.Widgets.ProfileService.get_defaultUserContext = function() { 
return Dave.Web.Controls.Widgets.ProfileService._staticInstance._userContext; }
Dave.Web.Controls.Widgets.ProfileService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Dave.Web.Controls.Widgets.ProfileService._staticInstance._succeeded = value; }
Dave.Web.Controls.Widgets.ProfileService.get_defaultSucceededCallback = function() { 
return Dave.Web.Controls.Widgets.ProfileService._staticInstance._succeeded; }
Dave.Web.Controls.Widgets.ProfileService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Dave.Web.Controls.Widgets.ProfileService._staticInstance._failed = value; }
Dave.Web.Controls.Widgets.ProfileService.get_defaultFailedCallback = function() { 
return Dave.Web.Controls.Widgets.ProfileService._staticInstance._failed; }
Dave.Web.Controls.Widgets.ProfileService.set_path("/Profile.asmx");
Dave.Web.Controls.Widgets.ProfileService.SaveBackgroundColor= function(profileId,color,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.SaveBackgroundColor(profileId,color,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.RenameProfilePage= function(profileId,title,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.RenameProfilePage(profileId,title,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.RateProfile= function(contentItemID,rating,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.RateProfile(contentItemID,rating,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.CopyProfileToMe= function(srcProfileId,deleteExisting,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.CopyProfileToMe(srcProfileId,deleteExisting,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.DeleteProfilePage= function(profileId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.DeleteProfilePage(profileId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.SavePosition= function(partname,width,height,top,left,z,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.SavePosition(partname,width,height,top,left,z,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.SavePositionInt= function(partname,width,height,top,left,z,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.SavePositionInt(partname,width,height,top,left,z,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.AddPart= function(profileId,newWidgetId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.AddPart(profileId,newWidgetId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.DropPart= function(partname,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.DropPart(partname,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.ListParts= function(profileId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.ListParts(profileId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.ClearParts= function(profileId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.ClearParts(profileId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.GetMaxZ= function(profileId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.GetMaxZ(profileId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.GetMinZ= function(profileId,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.GetMinZ(profileId,onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.ActivateUsernameUrl= function(onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.ActivateUsernameUrl(onSuccess,onFailed,userContext); }
Dave.Web.Controls.Widgets.ProfileService.SaveComment= function(profileId,comment,onSuccess,onFailed,userContext) {Dave.Web.Controls.Widgets.ProfileService._staticInstance.SaveComment(profileId,comment,onSuccess,onFailed,userContext); }
