29 using System.Collections;
30 using System.Collections.Generic;
31 using System.Reflection;
32 using System.Threading;
35 using OpenSim.Framework;
38 namespace OpenSim.Data.
Null
44 private static List<FriendsData> m_Data =
new List<FriendsData>();
64 return GetFriends(principalID.ToString());
78 List<FriendsData> lst = m_Data.FindAll(fdata =>
80 return fdata.PrincipalID == userID.ToString();
87 FriendsData f2 = m_Data.Find(candidateF2 => f.Friend == candidateF2.PrincipalID);
89 f.Data[
"TheirFlags"] = f2.Data[
"Flags"];
119 public bool Delete(UUID principalID,
string friend)
121 return Delete(principalID.ToString(),
friend);
124 public bool Delete(
string userID,
string friendID)
128 List<FriendsData> lst = m_Data.FindAll(delegate(
FriendsData fdata) {
return fdata.PrincipalID == userID.ToString(); });
132 if (friendID != null)
138 m_Data.Remove(
friend);
static void Clear()
Clear all friends data
An interface for connecting to the friends datastore
NullFriendsData(string connectionString, string realm)
FriendsData[] GetFriends(UUID principalID)
bool Delete(UUID principalID, string friend)
bool Store(FriendsData data)
bool Delete(string userID, string friendID)
FriendsData[] GetFriends(string userID)
Tries to implement the Get [] semantics, but it cuts corners. Specifically, it gets all friendships e...