LIBOMV-526 Adds ability to send a string message when requesting friendship with OfferFriendship method.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2724 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-05-09 00:35:06 +00:00
parent f88ca201e5
commit c351d287c7

View File

@@ -390,10 +390,20 @@ namespace OpenMetaverse
}
/// <summary>
/// Offer friendship to an avatar.
/// Overload: Offer friendship to an avatar.
/// </summary>
/// <param name="agentID">System ID of the avatar you are offering friendship to</param>
public void OfferFriendship(UUID agentID)
{
OfferFriendship(agentID, "Do ya wanna be my buddy?");
}
/// <summary>
/// Offer friendship to an avatar.
/// </summary>
/// <param name="agentID">System ID of the avatar you are offering friendship to</param>
/// <param name="message">A message to send with the request</param>
public void OfferFriendship(UUID agentID, string message)
{
// HACK: folder id stored as "message"
UUID callingCardFolder = Client.Inventory.FindFolderForType(AssetType.CallingCard);
@@ -405,7 +415,7 @@ namespace OpenMetaverse
InstantMessageOnline.Online,
Client.Self.SimPosition,
Client.Network.CurrentSim.ID,
Utils.EmptyBytes);
Utils.StringToBytes(message));
}