Exemplo n.º 1
0
 /// <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>
 /// <param name = "data">a default T to copy all data into</param>
 /// <returns></returns>
 public T GetGeneric <T>(UUID OwnerID, string Type, string Key) where T : IDataTransferable
 {
     return(GenericUtils.GetGeneric <T>(OwnerID, Type, Key, GD));
 }
Exemplo n.º 2
0
 /// <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, new MuteList()) != null);
 }