OpenMetaverse.FriendsManager.OfferFriendship C# (CSharp) Method

OfferFriendship() public method

Offer friendship to an avatar.
public OfferFriendship ( UUID agentID ) : void
agentID UUID System ID of the avatar you are offering friendship to
return void
        public void OfferFriendship(UUID agentID)
        {
            // HACK: folder id stored as "message"
            UUID callingCardFolder = Client.Inventory.FindFolderForType(AssetType.CallingCard);
            Client.Self.InstantMessage(Client.Self.Name,
                agentID,
                callingCardFolder.ToString(),
                UUID.Random(),
                InstantMessageDialog.FriendshipOffered,
                InstantMessageOnline.Online,
                Client.Self.SimPosition,
                Client.Network.CurrentSim.ID,
                new byte[0]);
        }