29 using OpenSim.Framework;
31 using System.Collections.Generic;
32 using OpenSim.Services.Interfaces;
48 FriendsData[] data = m_Database.GetFriends(PrincipalID);
49 List<FriendInfo> info =
new List<FriendInfo>();
57 i.MyFlags = Convert.ToInt32(d.Data[
"Flags"]);
58 i.TheirFlags = Convert.ToInt32(d.Data[
"TheirFlags"]);
63 return info.ToArray();
68 FriendsData[] data = m_Database.GetFriends(PrincipalID);
69 List<FriendInfo> info =
new List<FriendInfo>();
77 string tmp = string.Empty;
78 if (!Util.ParseUniversalUserIdentifier(d.
PrincipalID, out i.
PrincipalID, out tmp, out tmp, out tmp, out tmp))
83 i.MyFlags = Convert.ToInt32(d.Data[
"Flags"]);
84 i.TheirFlags = Convert.ToInt32(d.Data[
"TheirFlags"]);
89 return info.ToArray();
92 public virtual bool StoreFriend(
string PrincipalID,
string Friend,
int flags)
96 d.PrincipalID = PrincipalID;
98 d.Data =
new Dictionary<string, string>();
99 d.Data[
"Flags"] = flags.ToString();
101 return m_Database.Store(d);
104 public bool Delete(
string principalID,
string friend)
106 return m_Database.Delete(principalID,
friend);
109 public virtual bool Delete(UUID PrincipalID,
string Friend)
111 return m_Database.Delete(PrincipalID, Friend);
FriendsService(IConfigSource config)
OpenSim.Services.Interfaces.FriendInfo FriendInfo
virtual bool Delete(UUID PrincipalID, string Friend)
virtual FriendInfo[] GetFriends(string PrincipalID)
Interactive OpenSim region server
virtual FriendInfo[] GetFriends(UUID PrincipalID)
bool Delete(string principalID, string friend)
virtual bool StoreFriend(string PrincipalID, string Friend, int flags)