public List <MuteList> GetMuteList(UUID agentID) { if (m_doRemoteOnly) { object remoteValue = DoRemote(agentID); return(remoteValue != null ? (List <MuteList>)remoteValue : new List <MuteList> ()); } return(GenericUtils.GetGenerics <MuteList> (agentID, "MuteList", genData)); }
public List <MuteList> GetMuteList(UUID AgentID) { object remoteValue = DoRemote(AgentID); if (remoteValue != null || m_doRemoteOnly) { return((List <MuteList>)remoteValue); } return(GenericUtils.GetGenerics <MuteList>(AgentID, "MuteList", GD)); }
public List <Email> GetEmails(UUID objectID) { if (m_doRemoteOnly) { object remoteValue = DoRemote(objectID); return(remoteValue != null ? (List <Email>)remoteValue : new List <Email> ()); } //Get all the messages List <Email> emails = GenericUtils.GetGenerics <Email> (objectID, "Emails", GD); GenericUtils.RemoveGenericByType(objectID, "Emails", GD); return(emails); }
public List <GridInstantMessage> GetOfflineMessages(UUID agentID) { if (m_doRemoteOnly) { object remoteValue = DoRemote(agentID); return(remoteValue != null ? (List <GridInstantMessage>)remoteValue : new List <GridInstantMessage> ()); } //Get all the messages List <GridInstantMessage> Messages = GenericUtils.GetGenerics <GridInstantMessage>(agentID, "OfflineMessages", GD); Messages.AddRange(GenericUtils.GetGenerics <GridInstantMessage>(agentID, "GroupOfflineMessages", GD)); //Clear them out now that we have them GenericUtils.RemoveGenericByType(agentID, "OfflineMessages", GD); GenericUtils.RemoveGenericByType(agentID, "GroupOfflineMessages", GD); return(Messages); }
/// <summary> /// Gets a list of generic T's from the database /// </summary> /// <typeparam name="T"></typeparam> /// <param name="OwnerID"></param> /// <param name="Type"></param> /// <returns></returns> public List <T> GetGenerics <T>(UUID OwnerID, string Type) where T : IDataTransferable { return(GenericUtils.GetGenerics <T>(OwnerID, Type, GD)); }
/// <summary> /// Gets a list of generic T's from the database /// </summary> /// <typeparam name="T"></typeparam> /// <param name="ownerID"></param> /// <param name="type"></param> /// <returns></returns> public List <T> GetGenerics <T>(UUID ownerID, string type) where T : IDataTransferable { return(GenericUtils.GetGenerics <T>(ownerID, type, genData)); }