/// <summary>
 ///   Updates or adds a mute for the given agent
 /// </summary>
 /// <param name = "mute"></param>
 /// <param name = "AgentID"></param>
 public void UpdateMute(MuteList mute, UUID AgentID)
 {
     GenericUtils.AddGeneric(AgentID, "MuteList", mute.MuteID.ToString(), mute.ToOSD(), GD);
 }
 /// <summary>
 ///   Deletes a mute for the given agent
 /// </summary>
 /// <param name = "muteID"></param>
 /// <param name = "AgentID"></param>
 public void DeleteMute(UUID muteID, UUID AgentID)
 {
     GenericUtils.RemoveGeneric(AgentID, "MuteList", muteID.ToString(), GD);
 }
 /// <summary>
 ///   Checks to see if PossibleMuteID is muted by AgentID
 /// </summary>
 /// <param name = "AgentID"></param>
 /// <param name = "PossibleMuteID"></param>
 /// <returns></returns>
 public bool IsMuted(UUID AgentID, UUID PossibleMuteID)
 {
     return(GenericUtils.GetGeneric <MuteList>(AgentID, "MuteList", PossibleMuteID.ToString(), GD) != null);
 }
 /// <summary>
 ///   Gets the full mute list for the given agent.
 /// </summary>
 /// <param name = "AgentID"></param>
 /// <returns></returns>
 public MuteList[] GetMuteList(UUID AgentID)
 {
     return(GenericUtils.GetGenerics <MuteList>(AgentID, "MuteList", GD).ToArray());
 }
 /// <summary>
 ///   Adds a new offline message for the user.
 /// </summary>
 /// <param name = "message"></param>
 public void InsertEmail(Email email)
 {
     GenericUtils.AddGeneric(email.toPrimID, "Emails", UUID.Random().ToString(),
                             email.ToOSD(), GD);
 }
 /// <summary>
 ///     Gets a Generic type as set by the ownerID, Type, and Key
 /// </summary>
 /// <typeparam name="T">return value of type IDataTransferable</typeparam>
 /// <param name="OwnerID"></param>
 /// <param name="Type"></param>
 /// <param name="Key"></param>
 /// <returns></returns>
 public T GetGeneric <T>(UUID OwnerID, string Type, string Key) where T : IDataTransferable
 {
     return(GenericUtils.GetGeneric <T>(OwnerID, Type, Key, GD));
 }
 /// <summary>
 ///     Removes a generic IDataTransferable from the database
 /// </summary>
 /// <param name="AgentID"></param>
 /// <param name="Type"></param>
 public void RemoveGeneric(UUID AgentID, string Type)
 {
     GenericUtils.RemoveGenericByType(AgentID, Type, GD);
 }
 /// <summary>
 ///   Delete a parcel from the database
 /// </summary>
 /// <param name = "RegionID"></param>
 /// <param name = "ParcelID"></param>
 public void RemoveAllLandObjects(UUID RegionID)
 {
     GenericUtils.RemoveGenericByType(RegionID, "LandData", GD);
 }
 /// <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);
 }
 /// <summary>
 ///     Removes a generic IDataTransferable from the database
 /// </summary>
 /// <param name="AgentID"></param>
 /// <param name="Type"></param>
 /// <param name="Key"></param>
 public void RemoveGeneric(UUID AgentID, string Type, string Key)
 {
     GenericUtils.RemoveGenericByKeyAndType(AgentID, Type, Key, GD);
 }
 /// <summary>
 ///     Gets the number of list of generic T's from the database
 /// </summary>
 /// <param name="OwnerID"></param>
 /// <param name="Type"></param>
 /// <returns></returns>
 public int GetGenericCount(UUID OwnerID, string Type)
 {
     return(GenericUtils.GetGenericCount(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, GD));
 }
示例#13
0
 public void AddGroupProposal(UUID agentID, GroupProposalInfo info)
 {
     GenericUtils.AddGeneric(agentID, "Proposal", info.GroupID.ToString(), info.ToOSD(), data);
 }
示例#14
0
 public void StoreRegionWindlightSettings(UUID RegionID, UUID ID, RegionLightShareData map)
 {
     GenericUtils.AddGeneric(RegionID, "RegionWindLightData", ID.ToString(), map.ToOSD(), GD);
 }
 public List <UUID> GetOwnersByGeneric(string Type, string Key)
 {
     return(GenericUtils.GetOwnersByGeneric(GD, Type, Key));
 }
 /// <summary>
 ///   Delete a parcel from the database
 /// </summary>
 /// <param name = "RegionID"></param>
 /// <param name = "ParcelID"></param>
 public void RemoveLandObject(UUID RegionID, UUID ParcelID)
 {
     //Remove both the generic and the parcel access list
     GenericUtils.RemoveGeneric(RegionID, "LandData", ParcelID.ToString(), GD);
     GD.Delete("parcelaccess", new[] { "ParcelID" }, new object[] { ParcelID });
 }
 public List <UUID> GetOwnersByGeneric(string Type, string Key, OSDMap value)
 {
     return(GenericUtils.GetOwnersByGeneric(GD, Type, Key, value));
 }
 /// <summary>
 ///   This also updates the parcel, not for just adding a new one
 /// </summary>
 /// <param name = "args"></param>
 public void StoreLandObject(LandData args)
 {
     GenericUtils.AddGeneric(args.RegionID, "LandData", args.GlobalID.ToString(), args.ToOSD(), GD);
     //Parcel access is saved seperately
     SaveParcelAccessList(args);
 }
 /// <summary>
 /// Adds a new offline message for the user.
 /// </summary>
 /// <param name="message"></param>
 public void AddOfflineMessage(GridInstantMessage message)
 {
     GenericUtils.AddGeneric(new UUID(message.toAgentID), "OfflineMessages", UUID.Random().ToString(), message.ToOSD(), GD);
 }