From b16abc8166c29585cb76cc55c3bdd76e5833cb4f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 5 Jan 2017 19:07:37 +0000 Subject: Massive tab and trailing space cleanup --- .../UserProfilesService/UserProfilesService.cs | 42 +++++++++++----------- .../UserProfilesService/UserProfilesServiceBase.cs | 4 +-- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'OpenSim/Services/UserProfilesService') diff --git a/OpenSim/Services/UserProfilesService/UserProfilesService.cs b/OpenSim/Services/UserProfilesService/UserProfilesService.cs index 9a52e02..76aa093 100644 --- a/OpenSim/Services/UserProfilesService/UserProfilesService.cs +++ b/OpenSim/Services/UserProfilesService/UserProfilesService.cs @@ -45,7 +45,7 @@ namespace OpenSim.Services.ProfilesService static readonly ILog m_log = LogManager.GetLogger( MethodBase.GetCurrentMethod().DeclaringType); - + IUserAccountService userAccounts; public UserProfilesService(IConfigSource config, string configName): @@ -58,23 +58,23 @@ namespace OpenSim.Services.ProfilesService return; } Object[] args = null; - + args = new Object[] { config }; string accountService = Config.GetString("UserAccountService", String.Empty); if (accountService != string.Empty) userAccounts = ServerUtils.LoadPlugin(accountService, args); - + args = new Object[] { config }; } - + #region Classifieds public OSD AvatarClassifiedsRequest(UUID creatorId) { OSDArray records = ProfilesData.GetClassifiedRecords(creatorId); - + return records; } - + public bool ClassifiedUpdate(UserClassifiedAdd ad, ref string result) { if(!ProfilesData.UpdateClassifiedRecord(ad, ref result)) @@ -84,74 +84,74 @@ namespace OpenSim.Services.ProfilesService result = "success"; return true; } - + public bool ClassifiedDelete(UUID recordId) { if(ProfilesData.DeleteClassifiedRecord(recordId)) return true; - + return false; } - + public bool ClassifiedInfoRequest(ref UserClassifiedAdd ad, ref string result) { if(ProfilesData.GetClassifiedInfo(ref ad, ref result)) return true; - + return false; } #endregion Classifieds - + #region Picks public OSD AvatarPicksRequest(UUID creatorId) { OSDArray records = ProfilesData.GetAvatarPicks(creatorId); - + return records; } - + public bool PickInfoRequest(ref UserProfilePick pick, ref string result) { pick = ProfilesData.GetPickInfo(pick.CreatorId, pick.PickId); result = "OK"; return true; } - + public bool PicksUpdate(ref UserProfilePick pick, ref string result) { return ProfilesData.UpdatePicksRecord(pick); } - + public bool PicksDelete(UUID pickId) { return ProfilesData.DeletePicksRecord(pickId); } #endregion Picks - + #region Notes public bool AvatarNotesRequest(ref UserProfileNotes note) { return ProfilesData.GetAvatarNotes(ref note); } - + public bool NotesUpdate(ref UserProfileNotes note, ref string result) { return ProfilesData.UpdateAvatarNotes(ref note, ref result); } #endregion Notes - + #region Profile Properties public bool AvatarPropertiesRequest(ref UserProfileProperties prop, ref string result) { return ProfilesData.GetAvatarProperties(ref prop, ref result); } - + public bool AvatarPropertiesUpdate(ref UserProfileProperties prop, ref string result) { return ProfilesData.UpdateAvatarProperties(ref prop, ref result); } #endregion Profile Properties - + #region Interests public bool AvatarInterestsUpdate(UserProfileProperties prop, ref string result) { @@ -254,7 +254,7 @@ namespace OpenSim.Services.ProfilesService { return ProfilesData.GetUserAppData(ref prop, ref result); } - + public bool SetUserAppData(UserAppData prop, ref string result) { return true; diff --git a/OpenSim/Services/UserProfilesService/UserProfilesServiceBase.cs b/OpenSim/Services/UserProfilesService/UserProfilesServiceBase.cs index c31578f..48b43a6 100644 --- a/OpenSim/Services/UserProfilesService/UserProfilesServiceBase.cs +++ b/OpenSim/Services/UserProfilesService/UserProfilesServiceBase.cs @@ -68,7 +68,7 @@ namespace OpenSim.Services.ProfilesService if (string.IsNullOrEmpty(connString)) connString = dbConfig.GetString("ConnectionString", String.Empty); } - + IConfig ProfilesConfig = config.Configs[configName]; if (ProfilesConfig != null) { @@ -76,7 +76,7 @@ namespace OpenSim.Services.ProfilesService connString = ProfilesConfig.GetString("ConnectionString", connString); realm = ProfilesConfig.GetString("Realm", realm); } - + ProfilesData = LoadPlugin(dllName, new Object[] { connString }); if (ProfilesData == null) throw new Exception("Could not find a storage interface in the given module"); -- cgit v1.1