public bool Store(FriendsData data) { if (data == null) return false; m_Data.Add(data); return true; }
public bool StoreFriend(UUID PrincipalID, string Friend, int flags) { FriendsData d = new FriendsData(); d.PrincipalID = PrincipalID; d.Friend = Friend; d.Data = new Dictionary<string, string>(); d.Data["Flags"] = flags.ToString(); return m_Database.Store(d); }
public bool Store(FriendsData data) { if (data == null) return false; // m_log.DebugFormat( // "[NULL FRIENDS DATA]: Storing {0} {1} {2}", data.PrincipalID, data.Friend, data.Data["Flags"]); lock (m_Data) m_Data.Add(data); return true; }