30 using OpenSim.Framework;
31 using System.Collections.Generic;
33 namespace OpenSim.Services.Interfaces
56 PrincipalID = UUID.Zero;
57 if (kvp.ContainsKey(
"PrincipalID") && kvp[
"PrincipalID"] != null)
58 UUID.TryParse(kvp[
"PrincipalID"].ToString(), out PrincipalID);
59 Friend = string.Empty;
60 if (kvp.ContainsKey(
"Friend") && kvp[
"Friend"] != null)
61 Friend = kvp[
"Friend"].ToString();
62 MyFlags = (int)FriendRights.None;
63 if (kvp.ContainsKey(
"MyFlags") && kvp[
"MyFlags"] != null)
64 Int32.TryParse(kvp[
"MyFlags"].ToString(), out MyFlags);
66 if (kvp.ContainsKey(
"TheirFlags") && kvp[
"TheirFlags"] != null)
67 Int32.TryParse(kvp[
"TheirFlags"].ToString(), out TheirFlags);
72 Dictionary<string, object> result =
new Dictionary<string, object>();
73 result[
"PrincipalID"] = PrincipalID.ToString();
74 result[
"Friend"] = Friend;
75 result[
"MyFlags"] = MyFlags.ToString();
76 result[
"TheirFlags"] = TheirFlags.ToString();
86 bool StoreFriend(
string PrincipalID,
string Friend,
int flags);
87 bool Delete(UUID PrincipalID,
string Friend);
88 bool Delete(
string PrincipalID,
string Friend);
int MyFlags
The permissions that this user has granted to the friend.
FriendInfo(Dictionary< string, object > kvp)
Dictionary< string, object > ToKeyValuePairs()
int TheirFlags
The permissions that the friend has granted to this user.