Exemple #1
0
        public void UpdateMute(MuteList mute, UUID AgentID)
        {
            if (m_doRemoteOnly)
            {
                DoRemote(mute, AgentID);
                return;
            }

            GenericUtils.AddGeneric(AgentID, "MuteList", mute.MuteID.ToString(), mute.ToOSD(), GD);
        }
        public void InsertEmail (Email email)
        {
            if (m_doRemoteOnly) {
                DoRemote (email);
                return;
            }

            GenericUtils.AddGeneric (email.toPrimID, "Emails", UUID.Random ().ToString (),
                                    email.ToOSD (), GD);
        }
        public void UpdateMute(MuteList mute, UUID AgentID)
        {
            object remoteValue = DoRemote(mute, AgentID);

            if (remoteValue != null || m_doRemoteOnly)
            {
                return;
            }

            GenericUtils.AddGeneric(AgentID, "MuteList", mute.MuteID.ToString(), mute.ToOSD(), GD);
        }
        public void InsertEmail(Email email)
        {
            object remoteValue = DoRemote(email);

            if (remoteValue != null || m_doRemoteOnly)
            {
                return;
            }

            GenericUtils.AddGeneric(email.toPrimID, "Emails", UUID.Random().ToString(),
                                    email.ToOSD(), GD);
        }
Exemple #5
0
        public bool AddOfflineMessage(GridInstantMessage message)
        {
            if (m_doRemoteOnly)
            {
                object remoteValue = DoRemote(message);
                return(remoteValue != null && (bool)remoteValue);
            }

            if (m_maxOfflineMessages <= 0 ||
                GenericUtils.GetGenericCount(message.ToAgentID, "OfflineMessages", GD) < m_maxOfflineMessages)
            {
                GenericUtils.AddGeneric(message.ToAgentID, "OfflineMessages", UUID.Random().ToString(),
                                        message.ToOSD(), GD);
                return(true);
            }
            return(false);
        }
 /// <summary>
 ///     Adds a generic IDataTransferable into the database
 /// </summary>
 /// <param name="AgentID"></param>
 /// <param name="Type"></param>
 /// <param name="Key"></param>
 /// <param name="Value"></param>
 public void AddGeneric(UUID AgentID, string Type, string Key, OSDMap Value)
 {
     GenericUtils.AddGeneric(AgentID, Type, Key, Value, GD);
 }