|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.event.CAEvent
it.dtt.ca.event.RechargeEvent
public class RechargeEvent
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 |
---|
public static final int PROMOTIONAL_RECHARGE
public static final int DEBIT_CANCELLATION_RECHARGE
public static final int REQUESTED_RECHARGE
Constructor Detail |
---|
protected RechargeEvent(CAManager caManager, Money money)
caManager
- the CaManagermoney
- the value of the rechargeMethod Detail |
---|
public Money getValue()
public int getType()
getType
in class CAEvent
CAEvent.RECHARGE_EVENT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |