it.dtt.ca.response
Class BuyResponseEvent

java.lang.Object
  extended by it.dtt.ca.response.ResponseEvent
      extended by it.dtt.ca.response.SuccessResponseEvent
          extended by it.dtt.ca.response.BuyResponseEvent

public class BuyResponseEvent
extends SuccessResponseEvent

This event notifies a successful response to a BuyRequest.


Constructor Summary
BuyResponseEvent(CARequest request, Product product)
          Constructs BuyResponseEvent.
 
Method Summary
 Product getBoughtProduct()
          Get updated information on the purchased product.
 
Methods inherited from class it.dtt.ca.response.ResponseEvent
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuyResponseEvent

public BuyResponseEvent(CARequest request,
                        Product product)
Constructs BuyResponseEvent.

Parameters:
request - the CARequest object, that generated this response.
product - the specific product that has been purchased.
Method Detail

getBoughtProduct

public Product getBoughtProduct()
Get updated information on the purchased product.

Returns:
the product that has been bought.