it.dtt.ca.history
Class RechargeHistoryItem

java.lang.Object
  extended by it.dtt.ca.history.HistoryItem
      extended by it.dtt.ca.history.RechargeHistoryItem
All Implemented Interfaces:
java.io.Serializable

public class RechargeHistoryItem
extends HistoryItem
implements java.io.Serializable

This is the item describing a recharge processed by the set top box

See Also:
Serialized Form

Field Summary
 
Fields inherited from class it.dtt.ca.history.HistoryItem
DISPOSED, READ, UNREAD
 
Constructor Summary
protected RechargeHistoryItem(Money rechargeValue, int rechargeSource, java.lang.String transactionId, int status, java.util.Date date)
          Create a RechargeHistoryItem.
 
Method Summary
 int getRechargeSource()
          Tells if the recharge has been done by the broadcaster for free or if it was requested by user.
 Money getRechargeValue()
          Retrieves the value recharged within this specific item.
 java.lang.String getTransactionId()
          Get the unique identifier of the recharge transaction.
 
Methods inherited from class it.dtt.ca.history.HistoryItem
getDate, getStatus, markDisposed, markRead, markUnread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RechargeHistoryItem

protected RechargeHistoryItem(Money rechargeValue,
                              int rechargeSource,
                              java.lang.String transactionId,
                              int status,
                              java.util.Date date)
Create a RechargeHistoryItem.

Parameters:
rechargeValue - The amount of the recharge.
rechargeSource - The source of the recharge, can be any of the values defined in RechargeEvent.
transactionId - the unique identifier of the recharge transaction.
status - the status of this item in the history log, either READ, UNREAD, or DISPOSED.
date - the time and date of storage of the item in the history log.
Method Detail

getRechargeValue

public Money getRechargeValue()
Retrieves the value recharged within this specific item.

Returns:
The recharge value.

getRechargeSource

public int getRechargeSource()
Tells if the recharge has been done by the broadcaster for free or if it was requested by user.

Returns:
A constant to be compared with RechargeEvent.

getTransactionId

public java.lang.String getTransactionId()
Get the unique identifier of the recharge transaction.

Returns:
A string containing the transaction ID.