Skip to content

Commit

Permalink
Add RequestAvatarNotes(UUID) to AvatarManager
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Sep 18, 2021
1 parent d930577 commit a00a8b3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions LibreMetaverse/AvatarManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2006-2016, openmetaverse.co
* Copyright (c) 2021, Sjofn LLC.
* All rights reserved.
*
* - Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -776,6 +777,36 @@ public void RequestAvatarNameSearch(string name, UUID queryID)
Client.Network.SendPacket(aprp);
}

/// <summary>
/// Request avatar notes from simulator
/// </summary>
/// <param name="avatarid">Target agent UUID</param>
public void RequestAvatarNotes(UUID avatarid)
{
GenericMessagePacket gmp = new GenericMessagePacket
{
AgentData =
{
AgentID = Client.Self.AgentID,
SessionID = Client.Self.SessionID,
TransactionID = UUID.Zero
},
MethodData =
{
Method = Utils.StringToBytes("avatarnotesrequest"),
Invoice = UUID.Zero
},
ParamList = new GenericMessagePacket.ParamListBlock[1]
};

gmp.ParamList[0] =
new GenericMessagePacket.ParamListBlock
{
Parameter = Utils.StringToBytes(avatarid.ToString())
};
Client.Network.SendPacket(gmp);
}

/// <summary>
/// Start a request for Avatar Picks
/// </summary>
Expand Down

0 comments on commit a00a8b3

Please sign in to comment.