OpenMetaverse.ObjectManager.RequestPayPrice C# (CSharp) Method

RequestPayPrice() public method

Request prices that should be displayed in pay dialog. This will triggger the simulator to send us back a PayPriceReply which can be handled by OnPayPriceReply event
The result is raised in the PayPriceReply event
public RequestPayPrice ( Simulator simulator, UUID objectID ) : void
simulator Simulator The the object is located
objectID UUID The ID of the object
return void
        public void RequestPayPrice(Simulator simulator, UUID objectID)
        {
            RequestPayPricePacket payPriceRequest = new RequestPayPricePacket();

            payPriceRequest.ObjectData = new RequestPayPricePacket.ObjectDataBlock();
            payPriceRequest.ObjectData.ObjectID = objectID;

            Client.Network.SendPacket(payPriceRequest, simulator);
        }