Add a broader RequestCovenantNotecard() method to EstateTools

This commit is contained in:
cinder
2025-07-13 14:51:40 -05:00
parent 41a7e4fe2c
commit 0dcad8bf73

View File

@@ -736,6 +736,18 @@ namespace OpenMetaverse
/// <param name="callback">Asset Received callback</param>
/// <seealso cref="AssetManager.RequestAssetUDP"/>
public void RequestCovenantNotecard(UUID covenantId, AssetManager.AssetReceivedCallback callback)
{
RequestCovenantNotecard(covenantId, Client.Network.CurrentSim, callback);
}
/// <summary>
/// Requests Estate Covenant notecard from asset service
/// </summary>
/// <param name="covenantId">Asset UUID for estate covenant notecard</param>
/// <param name="simulator">Requested simulator</param>
/// <param name="callback">Asset Received callback</param>
/// <seealso cref="AssetManager.RequestAssetUDP"/>
public void RequestCovenantNotecard(UUID covenantId, Simulator simulator, AssetManager.AssetReceivedCallback callback)
{
var transfer = new AssetDownload
{
@@ -745,7 +757,7 @@ namespace OpenMetaverse
Priority = 101.0f,
Channel = ChannelType.Asset,
Source = SourceType.SimEstate,
Simulator = Client.Network.CurrentSim,
Simulator = simulator,
Callback = callback
};
Client.Assets.RequestEstateAsset(transfer, EstateAssetType.Covenant);