|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.util.Wallet
public class Wallet
This class represents a digital wallet. The content of this class is informative only: applications using this class cannot change any value contained in the wallet.
Wallets will depend upon the current user.
The current user is defined and retrieved using the org.dvb.user.GeneralPreference("UserName", String userName).
The user name is stored by:
And can be read by:
Constructor Summary | |
---|---|
protected |
Wallet(java.lang.String name,
java.lang.String id,
java.util.Date expiryDate,
Money credit,
int boughtCount,
int boughtLeftCount)
Creates a wallet. |
Method Summary | |
---|---|
int |
getBoughtNumber()
Gets the number of events bought with this card. |
int |
getCanBuyNumber()
Return the number of events that can be bought. |
Money |
getCredit()
Gets the credit left in the Wallet. |
java.util.Date |
getExpiryDate()
Get the expiry date of this Wallet. |
java.lang.String |
getId()
Get the identifier of this Wallet. |
java.lang.String |
getName()
Get the name of this Wallet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Wallet(java.lang.String name, java.lang.String id, java.util.Date expiryDate, Money credit, int boughtCount, int boughtLeftCount)
name
- name.id
- id.expiryDate
- expiry date.credit
- the credit to store on the wallet.boughtCount
- bought count.boughtLeftCount
- bought left count.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getId()
public java.util.Date getExpiryDate()
public Money getCredit()
public int getBoughtNumber()
public int getCanBuyNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |