|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.internet.CreditDebitReport
Such a report is returned to a client when he buys or deposits some money at the bank.
ECashBuyer.buy(java.lang.String, java.lang.String, char[], java.lang.String)
,
ECashSeller.deposit(java.lang.String, java.lang.String, char[], java.lang.String)
Constructor Summary | |
CreditDebitReport()
Creates a report. |
Method Summary | |
java.lang.String |
getCurrentAmount()
Returns the current amount of money available in the bank account. |
int |
getResult()
Returns an int that represents how the operation succeeded. |
void |
setCurrentAmount(java.lang.String currentAmount)
Sets the current amount available on the bank account. |
void |
setResult(int result)
Set the result that describes how the operation succeeded. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CreditDebitReport()
Method Detail |
public java.lang.String getCurrentAmount()
public int getResult()
For a buy operation, it can be
ECashGen.OK,
ECashGen.NOTES_EXP_SYNTAX_ERROR,
ECashGen.SERVER_NOT_READY,
ECashGen.CHEAT_WRONG_SIGNATURE or
ECashGen.CONNECTION_CLOSED_BY_SERVER.
For a deposit operation, it can be
ECashGen.OK,
ECashGen.NOTES_EXP_SYNTAX_ERROR,
ECashGen.NOTES_NOT_AVAILABLE,
ECashGen.SERVER_NOT_READY or
ECashGen.CONNECTION_CLOSED_BY_SERVER.
ECashGen
public void setCurrentAmount(java.lang.String currentAmount)
currentAmount
- the current amountpublic void setResult(int result)
result
- an integer describing how the operation succeededgetResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |