it.dtt.ca.event
Class RechargeEvent

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

public class RechargeEvent
extends CAEvent

This event is used to notify the box that a recharge process has been done; this is useful in case of OTA recharges and should not be used in case of return channel recharges which are managed via a request/response mechanism.


Field Summary
static int DEBIT_CANCELLATION_RECHARGE
          The recharge has been done by the broadcaster to cancel debit
static int PROMOTIONAL_RECHARGE
          The recharge has been done by the broadcaster for free for promotional purpose
static int REQUESTED_RECHARGE
          The recharge has arrived after a request done by the user (both via OTA and via RC)
 
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 RechargeEvent(CAManager caManager, Money money)
          Creates a RechargeEvent object.
 
Method Summary
 int getType()
          Returns the type of event that's arrived.
 Money getValue()
          Retrieves the value charged on the card.
 
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

PROMOTIONAL_RECHARGE

public static final int PROMOTIONAL_RECHARGE
The recharge has been done by the broadcaster for free for promotional purpose

See Also:
Constant Field Values

DEBIT_CANCELLATION_RECHARGE

public static final int DEBIT_CANCELLATION_RECHARGE
The recharge has been done by the broadcaster to cancel debit

See Also:
Constant Field Values

REQUESTED_RECHARGE

public static final int REQUESTED_RECHARGE
The recharge has arrived after a request done by the user (both via OTA and via RC)

See Also:
Constant Field Values
Constructor Detail

RechargeEvent

protected RechargeEvent(CAManager caManager,
                        Money money)
Creates a RechargeEvent object.

Parameters:
caManager - the CaManager
money - the value of the recharge
Method Detail

getValue

public Money getValue()
Retrieves the value charged on the card.

Returns:
the value

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.RECHARGE_EVENT