From bce7964ac2b0e67ff8c8e5ab00bb45b93da219ad Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 30 Mar 2012 01:05:29 +0100
Subject: refactor: Move "friends show cache" console command out into separate
FriendsCommandsModule.
Expose required methods on IFriendsModule. Rename GetFriends() -> GetFriendsFromCache() for self-documentation
---
.../Region/Framework/Interfaces/IFriendsModule.cs | 25 ++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/Framework/Interfaces')
diff --git a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
index 10bef1e..7e87006 100644
--- a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
@@ -25,15 +25,32 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System.Collections.Generic;
using OpenMetaverse;
using OpenSim.Framework;
-using System.Collections.Generic;
+using FriendInfo = OpenSim.Services.Interfaces.FriendInfo;
namespace OpenSim.Region.Framework.Interfaces
{
public interface IFriendsModule
{
///
+ /// Are friends cached on this simulator for a particular user?
+ ///
+ ///
+ ///
+ bool AreFriendsCached(UUID userID);
+
+ ///
+ /// Get friends from local cache only
+ ///
+ ///
+ ///
+ /// An empty array if the user has no friends or friends have not been cached.
+ ///
+ FriendInfo[] GetFriendsFromCache(UUID userID);
+
+ ///
/// Add a friendship between two users.
///
///
@@ -58,10 +75,10 @@ namespace OpenSim.Region.Framework.Interfaces
///
/// Get permissions granted by a friend.
///
- /// The user.
- /// The friend that granted.
+ /// The user.
+ /// The friend that granted.
/// The permissions. These come from the FriendRights enum.
- int GetRightsGrantedByFriend(UUID PrincipalID, UUID FriendID);
+ int GetRightsGrantedByFriend(UUID userID, UUID friendID);
///
/// Grant permissions for a friend.
--
cgit v1.1