it.dtt.ca.event
Class CAProductEvent

java.lang.Object
  extended by it.dtt.ca.event.CAEvent
      extended by it.dtt.ca.event.CAProductEvent

public class CAProductEvent
extends CAEvent

Notifies events related to a Product.


Field Summary
static int EVENT_BEGIN
          Notifies that a new PPV event just started.
static int EVENT_END
          Notifies that the current PPV event reached the end.
static int EVENT_STOPPED
          Notifies that the current PPV event has been stopped by the user (e.g. by the remote control)
static int PRODUCTS_OFFERS_LIST_CHANGED
          This notifies that the offered products' list has changed
 
Fields inherited from class it.dtt.ca.event.CAEvent
CA_ACCESS_EVENT, CA_PRODUCT_EVENT, HISTORY_UPDATE_EVENT, NEW_MESSAGE_EVENT, PIN_REQUEST_EVENT, RECHARGE_EVENT, SLOT_EVENT, SMART_CARD_STATUS_EVENT
 
Constructor Summary
protected CAProductEvent(CAManager caManager, Product product)
          Constructor for a CAProductEvent
 
Method Summary
 CAManager getManager()
          Retrieves the CAManager
 Product getProduct()
          Deprecated. Retrieves getProducts[0] Product object
 Product[] getProducts()
          Retrieves the products
 int getType()
          Returns the type of event that's arrived.
 
Methods inherited from class it.dtt.ca.event.CAEvent
getData, getDescription, getPrivateData, getSource, setPrivateData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_END

public static final int EVENT_END
Notifies that the current PPV event reached the end.

See Also:
Constant Field Values

EVENT_STOPPED

public static final int EVENT_STOPPED
Notifies that the current PPV event has been stopped by the user (e.g. by the remote control)

See Also:
Constant Field Values

EVENT_BEGIN

public static final int EVENT_BEGIN
Notifies that a new PPV event just started.

See Also:
Constant Field Values

PRODUCTS_OFFERS_LIST_CHANGED

public static final int PRODUCTS_OFFERS_LIST_CHANGED
This notifies that the offered products' list has changed

See Also:
Constant Field Values
Constructor Detail

CAProductEvent

protected CAProductEvent(CAManager caManager,
                         Product product)
Constructor for a CAProductEvent

Parameters:
caManager - the CAManager
product - the product to which the event refers
Method Detail

getManager

public CAManager getManager()
Retrieves the CAManager

Returns:
the CAManager

getProduct

public Product getProduct()
Deprecated. Retrieves getProducts[0] Product object

Returns:
getProducts[0] Product object

getProducts

public Product[] getProducts()
Retrieves the products

Returns:
the products related to the event

getType

public int getType()
Returns the type of event that's arrived.

Specified by:
getType in class CAEvent
Returns:
type of event.
See Also:
CAEvent.CA_PRODUCT_EVENT